diff options
author | Linus Nordberg <linus@nordu.net> | 2012-04-26 10:18:33 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2012-04-26 10:18:33 +0200 |
commit | 6e6672cffd42def79813dbf7f1588d2ce219ca79 (patch) | |
tree | 6c408c2806ed8336373a14eb10b2f47ab3645fec /lib/rsp_tlscommon.h | |
parent | c1f196080a7cb867afd3dee50e2910899cbf5f46 (diff) |
Implement cert verification.
NOTE: Not used yet.
Diffstat (limited to 'lib/rsp_tlscommon.h')
-rw-r--r-- | lib/rsp_tlscommon.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rsp_tlscommon.h b/lib/rsp_tlscommon.h index 6819cd0..0470aa7 100644 --- a/lib/rsp_tlscommon.h +++ b/lib/rsp_tlscommon.h @@ -34,9 +34,10 @@ 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) |