X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=lib%2Frsp_tlscommon.h;h=d96f5537b63fdd9d6e28ab98b8e7fbd63e5b335c;hb=4b0ff99282a91bba93eec9db37831be73b8134e4;hp=d7e0930d25b488009cb57bcf5f06a10d941eee7a;hpb=83e82dba47aced4a93f9e431b4d8bca94c2f8517;p=radsecproxy.git diff --git a/lib/rsp_tlscommon.h b/lib/rsp_tlscommon.h index d7e0930..d96f553 100644 --- a/lib/rsp_tlscommon.h +++ b/lib/rsp_tlscommon.h @@ -6,8 +6,13 @@ * copyright notice and this permission notice appear in all copies. */ +#include #include +#if defined (__cplusplus) +extern "C" { +#endif + struct tls { char *name; char *cacertfile; @@ -30,9 +35,14 @@ void ssl_init(); struct tls *tlsgettls(char *alt1, char *alt2); SSL_CTX *tlsgetctx(uint8_t type, struct tls *t); X509 *verifytlscert(SSL *ssl); +int subjectaltnameaddr(X509 *cert, int family, const struct in6_addr *addr); +int subjectaltnameregexp(X509 *cert, int type, const char *exact, const regex_t *regex); +int cnregexp(X509 *cert, const char *exact, const regex_t *regex); int verifyconfcert(X509 *cert, struct clsrvconf *conf); -int conftls_cb(struct gconffile **cf, void *arg, char *block, char *opt, char *val); -int addmatchcertattr(struct clsrvconf *conf); +#endif + +#if defined (__cplusplus) +} #endif /* Local Variables: */