diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-04-14 17:48:33 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-04-14 17:48:33 +0000 |
commit | e69d405842e8c9c0235b1e1818b578d47a25cc2d (patch) | |
tree | 58c1c3ebe63b8741b27e0d67438780c56b2ef374 | |
parent | a99b97727b59013a4109fe10a99c0ff001c548b5 (diff) | |
download | gnutls-e69d405842e8c9c0235b1e1818b578d47a25cc2d.tar.gz |
*** empty log message ***
-rw-r--r-- | lib/x509/extensions.c | 7 | ||||
-rw-r--r-- | lib/x509/x509_write.c | 9 |
2 files changed, 6 insertions, 10 deletions
diff --git a/lib/x509/extensions.c b/lib/x509/extensions.c index ca908ed881..842dfd601d 100644 --- a/lib/x509/extensions.c +++ b/lib/x509/extensions.c @@ -161,7 +161,6 @@ int _gnutls_x509_crt_get_extension_oid( gnutls_x509_crt cert, char name[128], name2[128], counter[MAX_INT_DIGITS]; char str[1024]; char extnID[128]; - char extnValue[256]; int indx_counter = 0; k = 0; @@ -307,6 +306,8 @@ int result; gnutls_assert(); return result; } + + return 0; } /* This function will attempt to overwrite the requested extension with @@ -318,13 +319,9 @@ int _gnutls_x509_crt_set_extension( gnutls_x509_crt cert, const char* ext_id, const gnutls_datum* ext_data, unsigned int critical) { int result; - const char *str; int k, len; char name[128], name2[128], counter[MAX_INT_DIGITS]; - char str_critical[10]; char extnID[128]; - gnutls_datum value; - int indx_counter = 0; /* Find the index of the given extension. */ diff --git a/lib/x509/x509_write.c b/lib/x509/x509_write.c index 1daa321ee1..32f5ea3001 100644 --- a/lib/x509/x509_write.c +++ b/lib/x509/x509_write.c @@ -715,10 +715,8 @@ int gnutls_x509_crt_set_authority_key_id(gnutls_x509_crt cert, const void* id, int gnutls_x509_crt_set_key_purpose_oid(gnutls_x509_crt cert, const void *oid, unsigned int critical) { - char counter[MAX_INT_DIGITS]; - char tmpstr[64]; - int result, len; - gnutls_datum id, old_id, der_data; + int result; + gnutls_datum old_id, der_data; ASN1_TYPE c2 = ASN1_TYPE_EMPTY; if (cert==NULL) { @@ -779,7 +777,8 @@ int gnutls_x509_crt_set_key_purpose_oid(gnutls_x509_crt cert, return _gnutls_asn2err(result); } - result = _gnutls_x509_crt_set_extension( cert, "2.5.29.37", &der_data, 0); + result = _gnutls_x509_crt_set_extension( cert, "2.5.29.37", + &der_data, critical); _gnutls_free_datum( &der_data); |