1 /* 2 * 3 * Portions Copyright 1998 Sun Microsystems, Inc. All rights reserved. 4 * Use is subject to license terms. 5 * 6 * 7 * This is a dummy header file for SSL 8 */ 9 10 #pragma ident "%Z%%M% %I% %E% SMI" 11 12 #ifndef _SSL_H 13 #define _SSL_H 14 15 #include <sys/types.h> 16 17 typedef void * SSL; 18 19 SSL SSL_new(); 20 int SSL_connect(SSL s, int filedes); 21 int SSL_accept(SSL s, int filedes); 22 int SSL_read(SSL s, u_char *buf, u_int len); 23 int SSL_write(SSL s, u_char *buf, u_int len); 24 int SSL_fread(SSL s, u_char *buf, u_int len); 25 int SSL_fwrite(SSL s, u_char *buf, u_int len); 26 int SSL_flush(SSL s); 27 int SSL_close(SSL s); 28 int SSL_delete(SSL s); 29 char **SSL_get_supported_ciphers(); 30 int SSL_get_cipher(SSL s, char **cipher); 31 int SSL_set_cipher(SSL s, char **cipher); 32 int SSL_set_verification(SSL s, char **root_ca_list, int *certificate_type_list); 33 int SSL_set_userid(SSL s, char *name, char *id); 34 int SSL_save_session(SSL s, u_char **id, int *len); 35 int SSL_set_session(SSL s, u_char *id, int len); 36 int SSL_delete_session(u_char *id, int len); 37 int SSL_errno(SSL s); 38 char *SSL_strerr(int err); 39 int SSL_get_fd(SSL s); 40 41 #endif _SSL_H 42