X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fssl.h;h=af085d05b72d0c0518f1465f07a5cf32e4f9e252;hb=40f6d58d5813d60af3221ef18f17d22268a1acd1;hp=df562b2d31e096218e2dea8155c40f6075be3905;hpb=eaca75aa6c133cc6ff3d707f7ae8dbfbe51a6d2a;p=dockapps%2Fwmnotify.git diff --git a/src/ssl.h b/src/ssl.h index df562b2..af085d0 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -1,9 +1,14 @@ -/* ssl.h */ +/* + * ssl.h + * + * Copyright (C) 2003 Hugo Villeneuve + * + * This file is released under the GPLv2 + */ #ifndef SSL_H #define SSL_H 1 - #if HAVE_CONFIG_H # include "config.h" #endif @@ -13,7 +18,6 @@ #include #include - /* Exported variables */ #undef _SCOPE_ #ifdef SSL_M @@ -24,25 +28,18 @@ #define FAIL -1 +struct ssl_infos_t { + SSL_CTX *ctx; + SSL *ssl; +}; -typedef struct ssl_infos_t { - SSL_CTX *ctx; - SSL *ssl; -} ssl_infos_t; - - -_SCOPE_ ssl_infos_t ssl_infos; - - -SSL_CTX * -InitCTX( void ); +_SCOPE_ struct ssl_infos_t ssl_infos; -void -ShowCerts( SSL *ssl ); +SSL_CTX *InitCTX(void); -int -InitSSL( int sock_fd ); +void ShowCerts(SSL *ssl); +int InitSSL(int sock_fd); #endif /* HAVE_SSL */