diff options
Diffstat (limited to 'ssl_verify_backend.h')
-rw-r--r-- | ssl_verify_backend.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ssl_verify_backend.h b/ssl_verify_backend.h index f54aa04..a551beb 100644 --- a/ssl_verify_backend.h +++ b/ssl_verify_backend.h @@ -182,4 +182,14 @@ bool verify_cert_ku (x509_cert_t *x509, const unsigned * const expected_ku, */ bool verify_cert_eku (x509_cert_t *x509, const char * const expected_oid); +/* + * Store the given certificate in pem format in a temporary file in tmp_dir + * + * @param cert Certificate to store + * @param tmp_dir Temporary directory to store the directory + * @param gc gc_arena to store temporary objects in + */ +const char *write_peer_cert(x509_cert_t *cert, const char *tmp_dir, + struct gc_arena *gc); + #endif /* SSL_VERIFY_BACKEND_H_ */ |