summaryrefslogtreecommitdiff
path: root/lib/auth/cert.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/auth/cert.h')
-rw-r--r--lib/auth/cert.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/auth/cert.h b/lib/auth/cert.h
index fe3210f922..3f57ec1c74 100644
--- a/lib/auth/cert.h
+++ b/lib/auth/cert.h
@@ -32,6 +32,12 @@
#define MAX_OCSP_RESPONSES 8
+/* We use the structure below to hold a certificate chain
+ * with corresponding public/private key pair. This structure will
+ * also be used when raw public keys are used. The cert_list will
+ * then not hold the cert chain but only a raw public-key. In that case
+ * the list length is always 1.
+ */
typedef struct {
gnutls_pcert_st *cert_list; /* a certificate chain */
unsigned int cert_list_length; /* its length */
@@ -73,7 +79,7 @@ typedef struct gnutls_certificate_credentials_st {
/* X509 specific stuff */
gnutls_x509_trust_list_t tlist;
unsigned flags; /* gnutls_certificate_flags */
- unsigned int verify_flags; /* flags to be used at
+ unsigned int verify_flags; /* flags to be used at
* certificate verification.
*/
unsigned int verify_depth;
@@ -161,4 +167,9 @@ int _gnutls_proc_dhe_signature(gnutls_session_t session, uint8_t * data,
size_t _data_size,
gnutls_datum_t * vparams);
+int _gnutls_gen_rawpk_crt(gnutls_session_t session, gnutls_buffer_st* data);
+int _gnutls_proc_rawpk_crt(gnutls_session_t session,
+ uint8_t * data, size_t data_size);
+
+
#endif