summaryrefslogtreecommitdiffstats
path: root/ssl_verify_backend.h
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-06-30 14:38:38 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-22 11:32:40 +0200
commit3e44ea55339429ede83857c9e79cc218d6bc297f (patch)
treece4b372ba21e998abafd569eb719b732656b75d8 /ssl_verify_backend.h
parent75c67073ed5d35b0efcd2a99492cf34339da08fb (diff)
downloadopenvpn-3e44ea55339429ede83857c9e79cc218d6bc297f.tar.gz
openvpn-3e44ea55339429ede83857c9e79cc218d6bc297f.tar.xz
openvpn-3e44ea55339429ede83857c9e79cc218d6bc297f.zip
Refactored tls-verify script code
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: James Yonan <james@openvpn.net> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'ssl_verify_backend.h')
-rw-r--r--ssl_verify_backend.h10
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_ */