10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * 3*3857Sstevel * Portions Copyright 1998 Sun Microsystems, Inc. All rights reserved. 4*3857Sstevel * Use is subject to license terms. 50Sstevel@tonic-gate * 60Sstevel@tonic-gate * 70Sstevel@tonic-gate * This is a dummy header file for SSL 80Sstevel@tonic-gate */ 90Sstevel@tonic-gate 100Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 110Sstevel@tonic-gate 120Sstevel@tonic-gate #ifndef _SSL_H 130Sstevel@tonic-gate #define _SSL_H 140Sstevel@tonic-gate 150Sstevel@tonic-gate #include <sys/types.h> 160Sstevel@tonic-gate 170Sstevel@tonic-gate typedef void * SSL; 180Sstevel@tonic-gate 190Sstevel@tonic-gate SSL SSL_new(); 200Sstevel@tonic-gate int SSL_connect(SSL s, int filedes); 210Sstevel@tonic-gate int SSL_accept(SSL s, int filedes); 220Sstevel@tonic-gate int SSL_read(SSL s, u_char *buf, u_int len); 230Sstevel@tonic-gate int SSL_write(SSL s, u_char *buf, u_int len); 240Sstevel@tonic-gate int SSL_fread(SSL s, u_char *buf, u_int len); 250Sstevel@tonic-gate int SSL_fwrite(SSL s, u_char *buf, u_int len); 260Sstevel@tonic-gate int SSL_flush(SSL s); 270Sstevel@tonic-gate int SSL_close(SSL s); 280Sstevel@tonic-gate int SSL_delete(SSL s); 290Sstevel@tonic-gate char **SSL_get_supported_ciphers(); 300Sstevel@tonic-gate int SSL_get_cipher(SSL s, char **cipher); 310Sstevel@tonic-gate int SSL_set_cipher(SSL s, char **cipher); 320Sstevel@tonic-gate int SSL_set_verification(SSL s, char **root_ca_list, int *certificate_type_list); 330Sstevel@tonic-gate int SSL_set_userid(SSL s, char *name, char *id); 340Sstevel@tonic-gate int SSL_save_session(SSL s, u_char **id, int *len); 350Sstevel@tonic-gate int SSL_set_session(SSL s, u_char *id, int len); 360Sstevel@tonic-gate int SSL_delete_session(u_char *id, int len); 370Sstevel@tonic-gate int SSL_errno(SSL s); 380Sstevel@tonic-gate char *SSL_strerr(int err); 390Sstevel@tonic-gate int SSL_get_fd(SSL s); 400Sstevel@tonic-gate 410Sstevel@tonic-gate #endif _SSL_H 42