summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-31 20:20:27 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-31 20:20:27 +0000
commit934ae36c06e64d4fa501552afed2a4085ea98358 (patch)
treeac8909627d56c71e03e76d47568f0f6f7299865b /sbin
parent038ceeab02c8e53c681c6f959c786dca020ab9fb (diff)
Add a some more routines for handling certs in the cert handler structure.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/cert.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sbin/isakmpd/cert.h b/sbin/isakmpd/cert.h
index 798d08c284b..accb03db0e3 100644
--- a/sbin/isakmpd/cert.h
+++ b/sbin/isakmpd/cert.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cert.h,v 1.6 2000/10/07 06:57:08 niklas Exp $ */
+/* $OpenBSD: cert.h,v 1.7 2001/05/31 20:20:26 angelos Exp $ */
/* $EOM: cert.h,v 1.8 2000/09/28 12:53:27 niklas Exp $ */
/*
@@ -50,6 +50,12 @@
* cert_validate - validated a certificate, if it returns != 0 we can use it.
* cert_insert - inserts cert into memory storage, we can retrieve with
* cert_obtain.
+ * cert_dup - duplicate a certificate
+ * cert_serialize - convert to a "serialized" form; KeyNote stays the same,
+ * X509 is converted to the ASN1 notation.
+ * cert_printable - for X509, the hex representation of the serialized form;
+ * for KeyNote, itself.
+ * cert_from_printable - the reverse of cert_printable
*/
struct cert_handler {
@@ -65,6 +71,10 @@ struct cert_handler {
int (*cert_obtain) (u_int8_t *, size_t, void *, u_int8_t **, u_int32_t *);
int (*cert_get_key) (void *, void *);
int (*cert_get_subjects) (void *, int *, u_int8_t ***, u_int32_t **);
+ void *(*cert_dup) (void *);
+ void (*cert_serialize) (void *, u_int8_t **, u_int32_t *);
+ char *(*cert_printable) (void *);
+ void *(*cert_from_printable) (char *);
};
/* the acceptable authority of cert request */