summaryrefslogtreecommitdiff
path: root/lib/gnutls_cert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-08-04 12:01:58 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-08-04 12:01:58 +0000
commita0d4edd24e26883edba083f07cf1fb4cbaaf36c2 (patch)
treee6cb3f4ad58b2d9fc2dec73b2869bb7e48322bc2 /lib/gnutls_cert.c
parent1e32c5bffd69edc51d93ab6bd4871823c4024deb (diff)
downloadgnutls-a0d4edd24e26883edba083f07cf1fb4cbaaf36c2.tar.gz
minor fixes
Diffstat (limited to 'lib/gnutls_cert.c')
-rw-r--r--lib/gnutls_cert.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c
index e2886e05e9..6fa1522504 100644
--- a/lib/gnutls_cert.c
+++ b/lib/gnutls_cert.c
@@ -599,6 +599,11 @@ static int _parse_extension( gnutls_cert* cert, char* extnID, char* critical, ch
return 0;
}
+ if (strcmp( extnID, "2 5 29 15")==0) { /* Key Usage */
+ cert->KeyUsage = extnValue[0];
+ return 0;
+ }
+
if (strcmp( extnID, "2 5 29 19")==0) { /* Basic Constraints */
/* we don't use it */
return 0;