]> sjero.net Git - wget/blob - src/gen_sslfunc.h
90295fad08d8e73c0e96c742459c1ffd6a6d65f6
[wget] / src / gen_sslfunc.h
1 /* SSL support.
2    Copyright (C) 2000 Free Software Foundation, Inc.
3    Contributed by Christian Fraenkel.
4
5 This file is part of GNU Wget.
6
7 GNU Wget is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 GNU Wget is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Wget; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
20
21 #ifndef GEN_SSLFUNC_H
22 #define GEN_SSLFUNC_H
23
24 #ifdef HAVE_SSL
25 # include <openssl/ssl.h>
26 #endif
27
28 void ssl_init_prng PARAMS ((void));
29 int init_ssl PARAMS ((SSL_CTX **));
30
31 int connect_ssl PARAMS ((SSL **, SSL_CTX *, int));
32 void shutdown_ssl PARAMS ((SSL*));
33 void free_ssl_ctx PARAMS ((SSL_CTX *));
34 int verify_callback PARAMS ((int, X509_STORE_CTX *));
35 int ssl_iread PARAMS ((SSL *, char *, int));
36 int ssl_iwrite PARAMS ((SSL *, char *, int));
37 int ssl_printerrors PARAMS ((void)); 
38
39 #endif /* GEN_SSLFUNC_H */