crl_write.c | crl_write.c | |||
---|---|---|---|---|
skipping to change at line 349 | skipping to change at line 349 | |||
gnutls_assert(); | gnutls_assert(); | |||
return GNUTLS_E_INVALID_REQUEST; | return GNUTLS_E_INVALID_REQUEST; | |||
} | } | |||
/* Check if the extension already exists. | /* Check if the extension already exists. | |||
*/ | */ | |||
result = | result = | |||
_gnutls_x509_crl_get_extension(crl, "2.5.29.35", 0, &old_id, | _gnutls_x509_crl_get_extension(crl, "2.5.29.35", 0, &old_id, | |||
&critical); | &critical); | |||
if (result >= 0) | if (result >= 0) { | |||
_gnutls_free_datum(&old_id); | _gnutls_free_datum(&old_id); | |||
if (result != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) { | } else if (result != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) { | |||
gnutls_assert(); | gnutls_assert(); | |||
return GNUTLS_E_INVALID_REQUEST; | return GNUTLS_E_INVALID_REQUEST; | |||
} | } | |||
/* generate the extension. | /* generate the extension. | |||
*/ | */ | |||
result = _gnutls_x509_ext_gen_auth_key_id(id, id_size, &der_data); | result = _gnutls_x509_ext_gen_auth_key_id(id, id_size, &der_data); | |||
if (result < 0) { | if (result < 0) { | |||
gnutls_assert(); | gnutls_assert(); | |||
return result; | return result; | |||
skipping to change at line 413 | skipping to change at line 413 | |||
gnutls_assert(); | gnutls_assert(); | |||
return GNUTLS_E_INVALID_REQUEST; | return GNUTLS_E_INVALID_REQUEST; | |||
} | } | |||
/* Check if the extension already exists. | /* Check if the extension already exists. | |||
*/ | */ | |||
result = | result = | |||
_gnutls_x509_crl_get_extension(crl, "2.5.29.20", 0, &old_id, | _gnutls_x509_crl_get_extension(crl, "2.5.29.20", 0, &old_id, | |||
&critical); | &critical); | |||
if (result >= 0) | if (result >= 0) { | |||
_gnutls_free_datum(&old_id); | _gnutls_free_datum(&old_id); | |||
if (result != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) { | } else if (result != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) { | |||
gnutls_assert(); | gnutls_assert(); | |||
return GNUTLS_E_INVALID_REQUEST; | return GNUTLS_E_INVALID_REQUEST; | |||
} | } | |||
/* generate the extension. | /* generate the extension. | |||
*/ | */ | |||
result = _gnutls_x509_ext_gen_number(nr, nr_size, &der_data); | result = _gnutls_x509_ext_gen_number(nr, nr_size, &der_data); | |||
if (result < 0) { | if (result < 0) { | |||
gnutls_assert(); | gnutls_assert(); | |||
return result; | return result; | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |