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