|
@@ -151,8 +151,8 @@ static int validator_start_download ( struct validator *validator,
|
151
|
151
|
crosscert = ( crosscert_copy ? crosscert_copy : crosscert_default );
|
152
|
152
|
|
153
|
153
|
/* Allocate URI string */
|
154
|
|
- uri_string_len = ( strlen ( crosscert ) + 14 /* "/%08x.der?" */ +
|
155
|
|
- base64_encoded_len ( issuer->len ) + 1 /* NUL */ );
|
|
154
|
+ uri_string_len = ( strlen ( crosscert ) + 22 /* "/%08x.der?subject=" */
|
|
155
|
+ + base64_encoded_len ( issuer->len ) + 1 /* NUL */ );
|
156
|
156
|
uri_string = zalloc ( uri_string_len );
|
157
|
157
|
if ( ! uri_string ) {
|
158
|
158
|
rc = -ENOMEM;
|
|
@@ -163,7 +163,7 @@ static int validator_start_download ( struct validator *validator,
|
163
|
163
|
crc = crc32_le ( 0xffffffffUL, issuer->data, issuer->len );
|
164
|
164
|
|
165
|
165
|
/* Generate URI string */
|
166
|
|
- len = snprintf ( uri_string, uri_string_len, "%s/%08x.der?",
|
|
166
|
+ len = snprintf ( uri_string, uri_string_len, "%s/%08x.der?subject=",
|
167
|
167
|
crosscert, crc );
|
168
|
168
|
base64_encode ( issuer->data, issuer->len, ( uri_string + len ) );
|
169
|
169
|
DBGC ( validator, "VALIDATOR %p downloading cross-signed certificate "
|