1 /* Copyright (c) 2007-2009, UNINETT AS */
2 /* See LICENSE for licensing information. */
4 #include <netinet/in.h>
5 #include <openssl/ssl.h>
7 #if defined (__cplusplus)
23 X509_VERIFY_PARAM *vpm;
28 #if defined(RADPROT_TLS) || defined(RADPROT_DTLS)
30 struct tls *tlsgettls(char *alt1, char *alt2);
31 SSL_CTX *tlsgetctx(uint8_t type, struct tls *t);
32 X509 *verifytlscert(SSL *ssl);
33 int subjectaltnameaddr(X509 *cert, int family, const struct in6_addr *addr);
34 int subjectaltnameregexp(X509 *cert, int type, const char *exact, const regex_t *regex);
35 int cnregexp(X509 *cert, const char *exact, const regex_t *regex);
36 int verifyconfcert(X509 *cert, struct clsrvconf *conf);
39 #if defined (__cplusplus)
43 /* Local Variables: */
44 /* c-file-style: "stroustrup" */