summaryrefslogtreecommitdiff
path: root/lib/gnutls_cert.h
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.h
parent1e32c5bffd69edc51d93ab6bd4871823c4024deb (diff)
downloadgnutls-a0d4edd24e26883edba083f07cf1fb4cbaaf36c2.tar.gz
minor fixes
Diffstat (limited to 'lib/gnutls_cert.h')
-rw-r--r--lib/gnutls_cert.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/gnutls_cert.h b/lib/gnutls_cert.h
index fc7eb34bed..38fb21bdfb 100644
--- a/lib/gnutls_cert.h
+++ b/lib/gnutls_cert.h
@@ -12,6 +12,16 @@ typedef struct {
char state_or_province_name[X509_S_SIZE];
} gnutls_DN;
+#define X509KEY_DIGITAL_SIGNATURE 256
+#define X509KEY_NON_REPUDIATION 128
+#define X509KEY_KEY_ENCIPHERMENT 64
+#define X509KEY_DATA_ENCIPHERMENT 32
+#define X509KEY_KEY_AGREEMENT 16
+#define X509KEY_KEY_CERT_SIGN 8
+#define X509KEY_CRL_SIGN 4
+#define X509KEY_ENCIPHER_ONLY 2
+#define X509KEY_DECIPHER_ONLY 1
+
typedef struct {
MPI *params; /* the size of params depends on the public
@@ -30,7 +40,11 @@ typedef struct {
time_t activation_time;
int version; /* 1,2,3
- */
+ */
+
+ int KeyUsage; /* bits from X509KEY_*
+ */
+
int valid; /* 0 if the certificate looks good.
*/
gnutls_datum raw; /* the raw certificate */