summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_verify.c
diff options
context:
space:
mode:
authorbcook <>2016-09-04 12:26:43 +0000
committerbcook <>2016-09-04 12:26:43 +0000
commitad909e37b20a2c933e88e0e359b2fdb401d05092 (patch)
tree00adeae01265c1c035072ffd2eb37000b9640ece /src/lib/libtls/tls_verify.c
parent50df0f10141bc06d1ff2d6bd98be2f5ab87857e6 (diff)
downloadopenbsd-ad909e37b20a2c933e88e0e359b2fdb401d05092.tar.gz
openbsd-ad909e37b20a2c933e88e0e359b2fdb401d05092.tar.bz2
openbsd-ad909e37b20a2c933e88e0e359b2fdb401d05092.zip
Add callback-based interface to libtls.
This allows working with buffers and callback functions instead of directly on sockets or file descriptors. Original patch from Tobias Pape <tobias_at_netshed.de>. ok beck@
Diffstat (limited to 'src/lib/libtls/tls_verify.c')
-rw-r--r--src/lib/libtls/tls_verify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_verify.c b/src/lib/libtls/tls_verify.c
index 9e73750a6e..e1073e863a 100644
--- a/src/lib/libtls/tls_verify.c
+++ b/src/lib/libtls/tls_verify.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_verify.c,v 1.16 2016/08/02 07:47:11 jsing Exp $ */ 1/* $OpenBSD: tls_verify.c,v 1.17 2016/09/04 12:26:43 bcook Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> 3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org>
4 * 4 *
@@ -24,6 +24,7 @@
24 24
25#include <openssl/x509v3.h> 25#include <openssl/x509v3.h>
26 26
27#include <tls.h>
27#include "tls_internal.h" 28#include "tls_internal.h"
28 29
29static int tls_match_name(const char *cert_name, const char *name); 30static int tls_match_name(const char *cert_name, const char *name);