fticks_hashmac has moved.
[libradsec.git] / tlscommon.h
index 2b7a5e4..084cb1c 100644 (file)
@@ -6,8 +6,34 @@
  * copyright notice and this permission notice appear in all copies.
  */
 
+#include <openssl/ssl.h>
+
+struct tls {
+    char *name;
+    char *cacertfile;
+    char *cacertpath;
+    char *certfile;
+    char *certkeyfile;
+    char *certkeypwd;
+    uint8_t crlcheck;
+    char **policyoids;
+    uint32_t cacheexpiry;
+    uint32_t tlsexpiry;
+    uint32_t dtlsexpiry;
+    X509_VERIFY_PARAM *vpm;
+    SSL_CTX *tlsctx;
+    SSL_CTX *dtlsctx;
+};
+
 #if defined(RADPROT_TLS) || defined(RADPROT_DTLS)
 struct tls *tlsgettls(char *alt1, char *alt2);
 SSL_CTX *tlsgetctx(uint8_t type, struct tls *t);
+X509 *verifytlscert(SSL *ssl);
+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
+
+/* Local Variables: */
+/* c-file-style: "stroustrup" */
+/* End: */