ssl.h (72613) | ssl.h (76866) |
---|---|
1/* ssl/ssl.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 192 unchanged lines hidden (view full) --- 201 { 202 int version; 203 int (*ssl_new)(SSL *s); 204 void (*ssl_clear)(SSL *s); 205 void (*ssl_free)(SSL *s); 206 int (*ssl_accept)(SSL *s); 207 int (*ssl_connect)(SSL *s); 208 int (*ssl_read)(SSL *s,void *buf,int len); | 1/* ssl/ssl.h */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 192 unchanged lines hidden (view full) --- 201 { 202 int version; 203 int (*ssl_new)(SSL *s); 204 void (*ssl_clear)(SSL *s); 205 void (*ssl_free)(SSL *s); 206 int (*ssl_accept)(SSL *s); 207 int (*ssl_connect)(SSL *s); 208 int (*ssl_read)(SSL *s,void *buf,int len); |
209 int (*ssl_peek)(SSL *s,char *buf,int len); | 209 int (*ssl_peek)(SSL *s,void *buf,int len); |
210 int (*ssl_write)(SSL *s,const void *buf,int len); 211 int (*ssl_shutdown)(SSL *s); 212 int (*ssl_renegotiate)(SSL *s); 213 int (*ssl_renegotiate_check)(SSL *s); 214 long (*ssl_ctrl)(SSL *s,int cmd,long larg,char *parg); 215 long (*ssl_ctx_ctrl)(SSL_CTX *ctx,int cmd,long larg,char *parg); 216 SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); 217 int (*put_cipher_by_char)(const SSL_CIPHER *cipher,unsigned char *ptr); --- 838 unchanged lines hidden (view full) --- 1056int SSL_CTX_set_purpose(SSL_CTX *s, int purpose); 1057int SSL_set_purpose(SSL *s, int purpose); 1058int SSL_CTX_set_trust(SSL_CTX *s, int trust); 1059int SSL_set_trust(SSL *s, int trust); 1060 1061void SSL_free(SSL *ssl); 1062int SSL_accept(SSL *ssl); 1063int SSL_connect(SSL *ssl); | 210 int (*ssl_write)(SSL *s,const void *buf,int len); 211 int (*ssl_shutdown)(SSL *s); 212 int (*ssl_renegotiate)(SSL *s); 213 int (*ssl_renegotiate_check)(SSL *s); 214 long (*ssl_ctrl)(SSL *s,int cmd,long larg,char *parg); 215 long (*ssl_ctx_ctrl)(SSL_CTX *ctx,int cmd,long larg,char *parg); 216 SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); 217 int (*put_cipher_by_char)(const SSL_CIPHER *cipher,unsigned char *ptr); --- 838 unchanged lines hidden (view full) --- 1056int SSL_CTX_set_purpose(SSL_CTX *s, int purpose); 1057int SSL_set_purpose(SSL *s, int purpose); 1058int SSL_CTX_set_trust(SSL_CTX *s, int trust); 1059int SSL_set_trust(SSL *s, int trust); 1060 1061void SSL_free(SSL *ssl); 1062int SSL_accept(SSL *ssl); 1063int SSL_connect(SSL *ssl); |
1064int SSL_read(SSL *ssl,char *buf,int num); 1065int SSL_peek(SSL *ssl,char *buf,int num); 1066int SSL_write(SSL *ssl,const char *buf,int num); | 1064int SSL_read(SSL *ssl,void *buf,int num); 1065int SSL_peek(SSL *ssl,void *buf,int num); 1066int SSL_write(SSL *ssl,const void *buf,int num); |
1067long SSL_ctrl(SSL *ssl,int cmd, long larg, char *parg); 1068long SSL_callback_ctrl(SSL *, int, void (*)()); 1069long SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, char *parg); 1070long SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)()); 1071 1072int SSL_get_error(SSL *s,int ret_code); 1073const char *SSL_get_version(SSL *s); 1074 --- 129 unchanged lines hidden (view full) --- 1204#else 1205int SSL_COMP_add_compression_method(int id,char *cm); 1206#endif 1207 1208/* BEGIN ERROR CODES */ 1209/* The following lines are auto generated by the script mkerr.pl. Any changes 1210 * made after this point may be overwritten when the script is next run. 1211 */ | 1067long SSL_ctrl(SSL *ssl,int cmd, long larg, char *parg); 1068long SSL_callback_ctrl(SSL *, int, void (*)()); 1069long SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, char *parg); 1070long SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)()); 1071 1072int SSL_get_error(SSL *s,int ret_code); 1073const char *SSL_get_version(SSL *s); 1074 --- 129 unchanged lines hidden (view full) --- 1204#else 1205int SSL_COMP_add_compression_method(int id,char *cm); 1206#endif 1207 1208/* BEGIN ERROR CODES */ 1209/* The following lines are auto generated by the script mkerr.pl. Any changes 1210 * made after this point may be overwritten when the script is next run. 1211 */ |
1212void ERR_load_SSL_strings(void); |
|
1212 1213/* Error codes for the SSL functions. */ 1214 1215/* Function codes. */ 1216#define SSL_F_CLIENT_CERTIFICATE 100 1217#define SSL_F_CLIENT_HELLO 101 1218#define SSL_F_CLIENT_MASTER_KEY 102 1219#define SSL_F_D2I_SSL_SESSION 103 --- 8 unchanged lines hidden (view full) --- 1228#define SSL_F_READ_N 112 1229#define SSL_F_REQUEST_CERTIFICATE 113 1230#define SSL_F_SERVER_HELLO 114 1231#define SSL_F_SSL23_ACCEPT 115 1232#define SSL_F_SSL23_CLIENT_HELLO 116 1233#define SSL_F_SSL23_CONNECT 117 1234#define SSL_F_SSL23_GET_CLIENT_HELLO 118 1235#define SSL_F_SSL23_GET_SERVER_HELLO 119 | 1213 1214/* Error codes for the SSL functions. */ 1215 1216/* Function codes. */ 1217#define SSL_F_CLIENT_CERTIFICATE 100 1218#define SSL_F_CLIENT_HELLO 101 1219#define SSL_F_CLIENT_MASTER_KEY 102 1220#define SSL_F_D2I_SSL_SESSION 103 --- 8 unchanged lines hidden (view full) --- 1229#define SSL_F_READ_N 112 1230#define SSL_F_REQUEST_CERTIFICATE 113 1231#define SSL_F_SERVER_HELLO 114 1232#define SSL_F_SSL23_ACCEPT 115 1233#define SSL_F_SSL23_CLIENT_HELLO 116 1234#define SSL_F_SSL23_CONNECT 117 1235#define SSL_F_SSL23_GET_CLIENT_HELLO 118 1236#define SSL_F_SSL23_GET_SERVER_HELLO 119 |
1237#define SSL_F_SSL23_PEEK 237 |
|
1236#define SSL_F_SSL23_READ 120 1237#define SSL_F_SSL23_WRITE 121 1238#define SSL_F_SSL2_ACCEPT 122 1239#define SSL_F_SSL2_CONNECT 123 1240#define SSL_F_SSL2_ENC_INIT 124 1241#define SSL_F_SSL2_PEEK 234 1242#define SSL_F_SSL2_READ 125 1243#define SSL_F_SSL2_READ_INTERNAL 236 --- 313 unchanged lines hidden (view full) --- 1557#define SSL_R_WRONG_VERSION_NUMBER 267 1558#define SSL_R_X509_LIB 268 1559#define SSL_R_X509_VERIFICATION_SETUP_PROBLEMS 269 1560 1561#ifdef __cplusplus 1562} 1563#endif 1564#endif | 1238#define SSL_F_SSL23_READ 120 1239#define SSL_F_SSL23_WRITE 121 1240#define SSL_F_SSL2_ACCEPT 122 1241#define SSL_F_SSL2_CONNECT 123 1242#define SSL_F_SSL2_ENC_INIT 124 1243#define SSL_F_SSL2_PEEK 234 1244#define SSL_F_SSL2_READ 125 1245#define SSL_F_SSL2_READ_INTERNAL 236 --- 313 unchanged lines hidden (view full) --- 1559#define SSL_R_WRONG_VERSION_NUMBER 267 1560#define SSL_R_X509_LIB 268 1561#define SSL_R_X509_VERIFICATION_SETUP_PROBLEMS 269 1562 1563#ifdef __cplusplus 1564} 1565#endif 1566#endif |
1565 | |