projects
/
radsecproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename COPYING -> LICENSE.
[radsecproxy.git]
/
lib
/
rsp_tlscommon.h
diff --git
a/lib/rsp_tlscommon.h
b/lib/rsp_tlscommon.h
index
d7e0930
..
da2092e
100644
(file)
--- a/
lib/rsp_tlscommon.h
+++ b/
lib/rsp_tlscommon.h
@@
-1,13
+1,13
@@
-/*
- * Copyright (C) 2006-2008 Stig Venaas <venaas@uninett.no>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- */
+/* Copyright (c) 2007-2009, UNINETT AS */
+/* See LICENSE for licensing information. */
+#include <netinet/in.h>
#include <openssl/ssl.h>
#include <openssl/ssl.h>
+#if defined (__cplusplus)
+extern "C" {
+#endif
+
struct tls {
char *name;
char *cacertfile;
struct tls {
char *name;
char *cacertfile;
@@
-30,9
+30,14
@@
void ssl_init();
struct tls *tlsgettls(char *alt1, char *alt2);
SSL_CTX *tlsgetctx(uint8_t type, struct tls *t);
X509 *verifytlscert(SSL *ssl);
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 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: */
#endif
/* Local Variables: */