2 * Copyright (C) 2006-2008 Stig Venaas <venaas@uninett.no>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
9 #include <netinet/in.h>
10 #include <openssl/ssl.h>
12 #if defined (__cplusplus)
28 X509_VERIFY_PARAM *vpm;
33 #if defined(RADPROT_TLS) || defined(RADPROT_DTLS)
35 struct tls *tlsgettls(char *alt1, char *alt2);
36 SSL_CTX *tlsgetctx(uint8_t type, struct tls *t);
37 X509 *verifytlscert(SSL *ssl);
38 int subjectaltnameaddr(X509 *cert, int family, const struct in6_addr *addr);
39 int subjectaltnameregexp(X509 *cert, int type, const char *exact, const regex_t *regex);
40 int cnregexp(X509 *cert, const char *exact, const regex_t *regex);
41 int verifyconfcert(X509 *cert, struct clsrvconf *conf);
44 #if defined (__cplusplus)
48 /* Local Variables: */
49 /* c-file-style: "stroustrup" */