X-Git-Url: http://www.project-moonshot.org/gitweb/?p=radsecproxy.git;a=blobdiff_plain;f=tls.h;h=51f2a6491d2ac98249de340bef50c1f8e49124ed;hp=b38cde22da52584a26536c424360255e08445a0d;hb=HEAD;hpb=ea645ad6e5ec575e574960ccb079241c50b992fe diff --git a/tls.h b/tls.h index b38cde2..51f2a64 100644 --- a/tls.h +++ b/tls.h @@ -1,12 +1,23 @@ -/* - * Copyright (C) 2006-2008 Stig Venaas - * - * 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. - */ - -int tlsconnect(struct server *server, struct timeval *when, int timeout, char *text); -int clientradputtls(struct server *server, unsigned char *rad); -void *tlsclientrd(void *arg); -void *tlslistener(void *arg); +/* Copyright 2010-2012 NORDUnet A/S. All rights reserved. + See LICENSE for licensing information. */ + +#if defined (__cplusplus) +extern "C" { +#endif + +int tls_init (void); +int tls_init_conn (struct rs_connection *conn); +int tls_verify_cert (struct rs_connection *conn); + +#define OPENSSL_VER(a,b,c,d,e) \ + (((a)<<28) | \ + ((b)<<20) | \ + ((c)<<12) | \ + ((d)<< 4) | \ + (e)) +#define OPENSSL_V(a,b,c,d) \ + OPENSSL_VER((a),(b),(c),(d)-'a'+1,0xf) + +#if defined (__cplusplus) +} +#endif