diff options
| author | djm <> | 2005-04-29 05:37:34 +0000 |
|---|---|---|
| committer | djm <> | 2005-04-29 05:37:34 +0000 |
| commit | a95585a25ab25668b931a78b7543f707a3354db8 (patch) | |
| tree | f9e9febf7ac0c8f5d6df761fe70fd613aac06203 /src/lib/libssl/ssl.h | |
| parent | 58c08aa241f168c84ce7cc3052454ea59a44eada (diff) | |
| download | openbsd-a95585a25ab25668b931a78b7543f707a3354db8.tar.gz openbsd-a95585a25ab25668b931a78b7543f707a3354db8.tar.bz2 openbsd-a95585a25ab25668b931a78b7543f707a3354db8.zip | |
import of openssl-0.9.7g; tested on platforms from alpha to zaurus, ok deraadt@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/ssl.h | 118 |
1 files changed, 61 insertions, 57 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 913bd40eea..3161f532cf 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
| @@ -239,6 +239,7 @@ extern "C" { | |||
| 239 | #define SSL_TXT_LOW "LOW" | 239 | #define SSL_TXT_LOW "LOW" |
| 240 | #define SSL_TXT_MEDIUM "MEDIUM" | 240 | #define SSL_TXT_MEDIUM "MEDIUM" |
| 241 | #define SSL_TXT_HIGH "HIGH" | 241 | #define SSL_TXT_HIGH "HIGH" |
| 242 | #define SSL_TXT_FIPS "FIPS" | ||
| 242 | #define SSL_TXT_kFZA "kFZA" | 243 | #define SSL_TXT_kFZA "kFZA" |
| 243 | #define SSL_TXT_aFZA "aFZA" | 244 | #define SSL_TXT_aFZA "aFZA" |
| 244 | #define SSL_TXT_eFZA "eFZA" | 245 | #define SSL_TXT_eFZA "eFZA" |
| @@ -372,7 +373,7 @@ typedef struct ssl_method_st | |||
| 372 | long (*ssl_ctx_ctrl)(SSL_CTX *ctx,int cmd,long larg,void *parg); | 373 | long (*ssl_ctx_ctrl)(SSL_CTX *ctx,int cmd,long larg,void *parg); |
| 373 | SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); | 374 | SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); |
| 374 | int (*put_cipher_by_char)(const SSL_CIPHER *cipher,unsigned char *ptr); | 375 | int (*put_cipher_by_char)(const SSL_CIPHER *cipher,unsigned char *ptr); |
| 375 | int (*ssl_pending)(SSL *s); | 376 | int (*ssl_pending)(const SSL *s); |
| 376 | int (*num_ciphers)(void); | 377 | int (*num_ciphers)(void); |
| 377 | SSL_CIPHER *(*get_cipher)(unsigned ncipher); | 378 | SSL_CIPHER *(*get_cipher)(unsigned ncipher); |
| 378 | struct ssl_method_st *(*get_ssl_method)(int version); | 379 | struct ssl_method_st *(*get_ssl_method)(int version); |
| @@ -998,8 +999,8 @@ extern "C" { | |||
| 998 | * -- that we sent (SSL_get_finished) | 999 | * -- that we sent (SSL_get_finished) |
| 999 | * -- that we expected from peer (SSL_get_peer_finished). | 1000 | * -- that we expected from peer (SSL_get_peer_finished). |
| 1000 | * Returns length (0 == no Finished so far), copies up to 'count' bytes. */ | 1001 | * Returns length (0 == no Finished so far), copies up to 'count' bytes. */ |
| 1001 | size_t SSL_get_finished(SSL *s, void *buf, size_t count); | 1002 | size_t SSL_get_finished(const SSL *s, void *buf, size_t count); |
| 1002 | size_t SSL_get_peer_finished(SSL *s, void *buf, size_t count); | 1003 | size_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count); |
| 1003 | 1004 | ||
| 1004 | /* use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 2 options | 1005 | /* use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 2 options |
| 1005 | * are 'ored' with SSL_VERIFY_PEER if they are desired */ | 1006 | * are 'ored' with SSL_VERIFY_PEER if they are desired */ |
| @@ -1171,26 +1172,26 @@ int SSL_CTX_set_cipher_list(SSL_CTX *,const char *str); | |||
| 1171 | SSL_CTX *SSL_CTX_new(SSL_METHOD *meth); | 1172 | SSL_CTX *SSL_CTX_new(SSL_METHOD *meth); |
| 1172 | void SSL_CTX_free(SSL_CTX *); | 1173 | void SSL_CTX_free(SSL_CTX *); |
| 1173 | long SSL_CTX_set_timeout(SSL_CTX *ctx,long t); | 1174 | long SSL_CTX_set_timeout(SSL_CTX *ctx,long t); |
| 1174 | long SSL_CTX_get_timeout(SSL_CTX *ctx); | 1175 | long SSL_CTX_get_timeout(const SSL_CTX *ctx); |
| 1175 | X509_STORE *SSL_CTX_get_cert_store(SSL_CTX *); | 1176 | X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *); |
| 1176 | void SSL_CTX_set_cert_store(SSL_CTX *,X509_STORE *); | 1177 | void SSL_CTX_set_cert_store(SSL_CTX *,X509_STORE *); |
| 1177 | int SSL_want(SSL *s); | 1178 | int SSL_want(const SSL *s); |
| 1178 | int SSL_clear(SSL *s); | 1179 | int SSL_clear(SSL *s); |
| 1179 | 1180 | ||
| 1180 | void SSL_CTX_flush_sessions(SSL_CTX *ctx,long tm); | 1181 | void SSL_CTX_flush_sessions(SSL_CTX *ctx,long tm); |
| 1181 | 1182 | ||
| 1182 | SSL_CIPHER *SSL_get_current_cipher(SSL *s); | 1183 | SSL_CIPHER *SSL_get_current_cipher(const SSL *s); |
| 1183 | int SSL_CIPHER_get_bits(SSL_CIPHER *c,int *alg_bits); | 1184 | int SSL_CIPHER_get_bits(const SSL_CIPHER *c,int *alg_bits); |
| 1184 | char * SSL_CIPHER_get_version(SSL_CIPHER *c); | 1185 | char * SSL_CIPHER_get_version(const SSL_CIPHER *c); |
| 1185 | const char * SSL_CIPHER_get_name(SSL_CIPHER *c); | 1186 | const char * SSL_CIPHER_get_name(const SSL_CIPHER *c); |
| 1186 | 1187 | ||
| 1187 | int SSL_get_fd(SSL *s); | 1188 | int SSL_get_fd(const SSL *s); |
| 1188 | int SSL_get_rfd(SSL *s); | 1189 | int SSL_get_rfd(const SSL *s); |
| 1189 | int SSL_get_wfd(SSL *s); | 1190 | int SSL_get_wfd(const SSL *s); |
| 1190 | const char * SSL_get_cipher_list(SSL *s,int n); | 1191 | const char * SSL_get_cipher_list(const SSL *s,int n); |
| 1191 | char * SSL_get_shared_ciphers(SSL *s, char *buf, int len); | 1192 | char * SSL_get_shared_ciphers(const SSL *s, char *buf, int len); |
| 1192 | int SSL_get_read_ahead(SSL * s); | 1193 | int SSL_get_read_ahead(const SSL * s); |
| 1193 | int SSL_pending(SSL *s); | 1194 | int SSL_pending(const SSL *s); |
| 1194 | #ifndef OPENSSL_NO_SOCK | 1195 | #ifndef OPENSSL_NO_SOCK |
| 1195 | int SSL_set_fd(SSL *s, int fd); | 1196 | int SSL_set_fd(SSL *s, int fd); |
| 1196 | int SSL_set_rfd(SSL *s, int fd); | 1197 | int SSL_set_rfd(SSL *s, int fd); |
| @@ -1198,14 +1199,14 @@ int SSL_set_wfd(SSL *s, int fd); | |||
| 1198 | #endif | 1199 | #endif |
| 1199 | #ifndef OPENSSL_NO_BIO | 1200 | #ifndef OPENSSL_NO_BIO |
| 1200 | void SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio); | 1201 | void SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio); |
| 1201 | BIO * SSL_get_rbio(SSL *s); | 1202 | BIO * SSL_get_rbio(const SSL *s); |
| 1202 | BIO * SSL_get_wbio(SSL *s); | 1203 | BIO * SSL_get_wbio(const SSL *s); |
| 1203 | #endif | 1204 | #endif |
| 1204 | int SSL_set_cipher_list(SSL *s, const char *str); | 1205 | int SSL_set_cipher_list(SSL *s, const char *str); |
| 1205 | void SSL_set_read_ahead(SSL *s, int yes); | 1206 | void SSL_set_read_ahead(SSL *s, int yes); |
| 1206 | int SSL_get_verify_mode(SSL *s); | 1207 | int SSL_get_verify_mode(const SSL *s); |
| 1207 | int SSL_get_verify_depth(SSL *s); | 1208 | int SSL_get_verify_depth(const SSL *s); |
| 1208 | int (*SSL_get_verify_callback(SSL *s))(int,X509_STORE_CTX *); | 1209 | int (*SSL_get_verify_callback(const SSL *s))(int,X509_STORE_CTX *); |
| 1209 | void SSL_set_verify(SSL *s, int mode, | 1210 | void SSL_set_verify(SSL *s, int mode, |
| 1210 | int (*callback)(int ok,X509_STORE_CTX *ctx)); | 1211 | int (*callback)(int ok,X509_STORE_CTX *ctx)); |
| 1211 | void SSL_set_verify_depth(SSL *s, int depth); | 1212 | void SSL_set_verify_depth(SSL *s, int depth); |
| @@ -1243,20 +1244,20 @@ const char *SSL_state_string(const SSL *s); | |||
| 1243 | const char *SSL_rstate_string(const SSL *s); | 1244 | const char *SSL_rstate_string(const SSL *s); |
| 1244 | const char *SSL_state_string_long(const SSL *s); | 1245 | const char *SSL_state_string_long(const SSL *s); |
| 1245 | const char *SSL_rstate_string_long(const SSL *s); | 1246 | const char *SSL_rstate_string_long(const SSL *s); |
| 1246 | long SSL_SESSION_get_time(SSL_SESSION *s); | 1247 | long SSL_SESSION_get_time(const SSL_SESSION *s); |
| 1247 | long SSL_SESSION_set_time(SSL_SESSION *s, long t); | 1248 | long SSL_SESSION_set_time(SSL_SESSION *s, long t); |
| 1248 | long SSL_SESSION_get_timeout(SSL_SESSION *s); | 1249 | long SSL_SESSION_get_timeout(const SSL_SESSION *s); |
| 1249 | long SSL_SESSION_set_timeout(SSL_SESSION *s, long t); | 1250 | long SSL_SESSION_set_timeout(SSL_SESSION *s, long t); |
| 1250 | void SSL_copy_session_id(SSL *to,SSL *from); | 1251 | void SSL_copy_session_id(SSL *to,const SSL *from); |
| 1251 | 1252 | ||
| 1252 | SSL_SESSION *SSL_SESSION_new(void); | 1253 | SSL_SESSION *SSL_SESSION_new(void); |
| 1253 | unsigned long SSL_SESSION_hash(SSL_SESSION *a); | 1254 | unsigned long SSL_SESSION_hash(const SSL_SESSION *a); |
| 1254 | int SSL_SESSION_cmp(SSL_SESSION *a,SSL_SESSION *b); | 1255 | int SSL_SESSION_cmp(const SSL_SESSION *a,const SSL_SESSION *b); |
| 1255 | #ifndef OPENSSL_NO_FP_API | 1256 | #ifndef OPENSSL_NO_FP_API |
| 1256 | int SSL_SESSION_print_fp(FILE *fp,SSL_SESSION *ses); | 1257 | int SSL_SESSION_print_fp(FILE *fp,const SSL_SESSION *ses); |
| 1257 | #endif | 1258 | #endif |
| 1258 | #ifndef OPENSSL_NO_BIO | 1259 | #ifndef OPENSSL_NO_BIO |
| 1259 | int SSL_SESSION_print(BIO *fp,SSL_SESSION *ses); | 1260 | int SSL_SESSION_print(BIO *fp,const SSL_SESSION *ses); |
| 1260 | #endif | 1261 | #endif |
| 1261 | void SSL_SESSION_free(SSL_SESSION *ses); | 1262 | void SSL_SESSION_free(SSL_SESSION *ses); |
| 1262 | int i2d_SSL_SESSION(SSL_SESSION *in,unsigned char **pp); | 1263 | int i2d_SSL_SESSION(SSL_SESSION *in,unsigned char **pp); |
| @@ -1267,17 +1268,18 @@ int SSL_CTX_set_generate_session_id(SSL_CTX *, GEN_SESSION_CB); | |||
| 1267 | int SSL_set_generate_session_id(SSL *, GEN_SESSION_CB); | 1268 | int SSL_set_generate_session_id(SSL *, GEN_SESSION_CB); |
| 1268 | int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id, | 1269 | int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id, |
| 1269 | unsigned int id_len); | 1270 | unsigned int id_len); |
| 1270 | SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a,unsigned char **pp,long length); | 1271 | SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a,const unsigned char * const *pp, |
| 1272 | long length); | ||
| 1271 | 1273 | ||
| 1272 | #ifdef HEADER_X509_H | 1274 | #ifdef HEADER_X509_H |
| 1273 | X509 * SSL_get_peer_certificate(SSL *s); | 1275 | X509 * SSL_get_peer_certificate(const SSL *s); |
| 1274 | #endif | 1276 | #endif |
| 1275 | 1277 | ||
| 1276 | STACK_OF(X509) *SSL_get_peer_cert_chain(SSL *s); | 1278 | STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s); |
| 1277 | 1279 | ||
| 1278 | int SSL_CTX_get_verify_mode(SSL_CTX *ctx); | 1280 | int SSL_CTX_get_verify_mode(const SSL_CTX *ctx); |
| 1279 | int SSL_CTX_get_verify_depth(SSL_CTX *ctx); | 1281 | int SSL_CTX_get_verify_depth(const SSL_CTX *ctx); |
| 1280 | int (*SSL_CTX_get_verify_callback(SSL_CTX *ctx))(int,X509_STORE_CTX *); | 1282 | int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(int,X509_STORE_CTX *); |
| 1281 | void SSL_CTX_set_verify(SSL_CTX *ctx,int mode, | 1283 | void SSL_CTX_set_verify(SSL_CTX *ctx,int mode, |
| 1282 | int (*callback)(int, X509_STORE_CTX *)); | 1284 | int (*callback)(int, X509_STORE_CTX *)); |
| 1283 | void SSL_CTX_set_verify_depth(SSL_CTX *ctx,int depth); | 1285 | void SSL_CTX_set_verify_depth(SSL_CTX *ctx,int depth); |
| @@ -1295,8 +1297,8 @@ int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len, unsigned char *d); | |||
| 1295 | void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb); | 1297 | void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb); |
| 1296 | void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u); | 1298 | void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u); |
| 1297 | 1299 | ||
| 1298 | int SSL_CTX_check_private_key(SSL_CTX *ctx); | 1300 | int SSL_CTX_check_private_key(const SSL_CTX *ctx); |
| 1299 | int SSL_check_private_key(SSL *ctx); | 1301 | int SSL_check_private_key(const SSL *ctx); |
| 1300 | 1302 | ||
| 1301 | int SSL_CTX_set_session_id_context(SSL_CTX *ctx,const unsigned char *sid_ctx, | 1303 | int SSL_CTX_set_session_id_context(SSL_CTX *ctx,const unsigned char *sid_ctx, |
| 1302 | unsigned int sid_ctx_len); | 1304 | unsigned int sid_ctx_len); |
| @@ -1321,8 +1323,8 @@ long SSL_callback_ctrl(SSL *, int, void (*)()); | |||
| 1321 | long SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, void *parg); | 1323 | long SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, void *parg); |
| 1322 | long SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)()); | 1324 | long SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)()); |
| 1323 | 1325 | ||
| 1324 | int SSL_get_error(SSL *s,int ret_code); | 1326 | int SSL_get_error(const SSL *s,int ret_code); |
| 1325 | const char *SSL_get_version(SSL *s); | 1327 | const char *SSL_get_version(const SSL *s); |
| 1326 | 1328 | ||
| 1327 | /* This sets the 'default' SSL version that SSL_new() will create */ | 1329 | /* This sets the 'default' SSL version that SSL_new() will create */ |
| 1328 | int SSL_CTX_set_ssl_version(SSL_CTX *ctx,SSL_METHOD *meth); | 1330 | int SSL_CTX_set_ssl_version(SSL_CTX *ctx,SSL_METHOD *meth); |
| @@ -1343,7 +1345,7 @@ SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */ | |||
| 1343 | SSL_METHOD *TLSv1_server_method(void); /* TLSv1.0 */ | 1345 | SSL_METHOD *TLSv1_server_method(void); /* TLSv1.0 */ |
| 1344 | SSL_METHOD *TLSv1_client_method(void); /* TLSv1.0 */ | 1346 | SSL_METHOD *TLSv1_client_method(void); /* TLSv1.0 */ |
| 1345 | 1347 | ||
| 1346 | STACK_OF(SSL_CIPHER) *SSL_get_ciphers(SSL *s); | 1348 | STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s); |
| 1347 | 1349 | ||
| 1348 | int SSL_do_handshake(SSL *s); | 1350 | int SSL_do_handshake(SSL *s); |
| 1349 | int SSL_renegotiate(SSL *s); | 1351 | int SSL_renegotiate(SSL *s); |
| @@ -1359,15 +1361,15 @@ const char *SSL_alert_desc_string(int value); | |||
| 1359 | 1361 | ||
| 1360 | void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list); | 1362 | void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list); |
| 1361 | void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list); | 1363 | void SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list); |
| 1362 | STACK_OF(X509_NAME) *SSL_get_client_CA_list(SSL *s); | 1364 | STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s); |
| 1363 | STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(SSL_CTX *s); | 1365 | STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s); |
| 1364 | int SSL_add_client_CA(SSL *ssl,X509 *x); | 1366 | int SSL_add_client_CA(SSL *ssl,X509 *x); |
| 1365 | int SSL_CTX_add_client_CA(SSL_CTX *ctx,X509 *x); | 1367 | int SSL_CTX_add_client_CA(SSL_CTX *ctx,X509 *x); |
| 1366 | 1368 | ||
| 1367 | void SSL_set_connect_state(SSL *s); | 1369 | void SSL_set_connect_state(SSL *s); |
| 1368 | void SSL_set_accept_state(SSL *s); | 1370 | void SSL_set_accept_state(SSL *s); |
| 1369 | 1371 | ||
| 1370 | long SSL_get_default_timeout(SSL *s); | 1372 | long SSL_get_default_timeout(const SSL *s); |
| 1371 | 1373 | ||
| 1372 | int SSL_library_init(void ); | 1374 | int SSL_library_init(void ); |
| 1373 | 1375 | ||
| @@ -1376,43 +1378,43 @@ STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk); | |||
| 1376 | 1378 | ||
| 1377 | SSL *SSL_dup(SSL *ssl); | 1379 | SSL *SSL_dup(SSL *ssl); |
| 1378 | 1380 | ||
| 1379 | X509 *SSL_get_certificate(SSL *ssl); | 1381 | X509 *SSL_get_certificate(const SSL *ssl); |
| 1380 | /* EVP_PKEY */ struct evp_pkey_st *SSL_get_privatekey(SSL *ssl); | 1382 | /* EVP_PKEY */ struct evp_pkey_st *SSL_get_privatekey(SSL *ssl); |
| 1381 | 1383 | ||
| 1382 | void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx,int mode); | 1384 | void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx,int mode); |
| 1383 | int SSL_CTX_get_quiet_shutdown(SSL_CTX *ctx); | 1385 | int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx); |
| 1384 | void SSL_set_quiet_shutdown(SSL *ssl,int mode); | 1386 | void SSL_set_quiet_shutdown(SSL *ssl,int mode); |
| 1385 | int SSL_get_quiet_shutdown(SSL *ssl); | 1387 | int SSL_get_quiet_shutdown(const SSL *ssl); |
| 1386 | void SSL_set_shutdown(SSL *ssl,int mode); | 1388 | void SSL_set_shutdown(SSL *ssl,int mode); |
| 1387 | int SSL_get_shutdown(SSL *ssl); | 1389 | int SSL_get_shutdown(const SSL *ssl); |
| 1388 | int SSL_version(SSL *ssl); | 1390 | int SSL_version(const SSL *ssl); |
| 1389 | int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx); | 1391 | int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx); |
| 1390 | int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile, | 1392 | int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile, |
| 1391 | const char *CApath); | 1393 | const char *CApath); |
| 1392 | #define SSL_get0_session SSL_get_session /* just peek at pointer */ | 1394 | #define SSL_get0_session SSL_get_session /* just peek at pointer */ |
| 1393 | SSL_SESSION *SSL_get_session(SSL *ssl); | 1395 | SSL_SESSION *SSL_get_session(const SSL *ssl); |
| 1394 | SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */ | 1396 | SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */ |
| 1395 | SSL_CTX *SSL_get_SSL_CTX(SSL *ssl); | 1397 | SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl); |
| 1396 | void SSL_set_info_callback(SSL *ssl, | 1398 | void SSL_set_info_callback(SSL *ssl, |
| 1397 | void (*cb)(const SSL *ssl,int type,int val)); | 1399 | void (*cb)(const SSL *ssl,int type,int val)); |
| 1398 | void (*SSL_get_info_callback(SSL *ssl))(const SSL *ssl,int type,int val); | 1400 | void (*SSL_get_info_callback(const SSL *ssl))(const SSL *ssl,int type,int val); |
| 1399 | int SSL_state(SSL *ssl); | 1401 | int SSL_state(const SSL *ssl); |
| 1400 | 1402 | ||
| 1401 | void SSL_set_verify_result(SSL *ssl,long v); | 1403 | void SSL_set_verify_result(SSL *ssl,long v); |
| 1402 | long SSL_get_verify_result(SSL *ssl); | 1404 | long SSL_get_verify_result(const SSL *ssl); |
| 1403 | 1405 | ||
| 1404 | int SSL_set_ex_data(SSL *ssl,int idx,void *data); | 1406 | int SSL_set_ex_data(SSL *ssl,int idx,void *data); |
| 1405 | void *SSL_get_ex_data(SSL *ssl,int idx); | 1407 | void *SSL_get_ex_data(const SSL *ssl,int idx); |
| 1406 | int SSL_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 1408 | int SSL_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, |
| 1407 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); | 1409 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); |
| 1408 | 1410 | ||
| 1409 | int SSL_SESSION_set_ex_data(SSL_SESSION *ss,int idx,void *data); | 1411 | int SSL_SESSION_set_ex_data(SSL_SESSION *ss,int idx,void *data); |
| 1410 | void *SSL_SESSION_get_ex_data(SSL_SESSION *ss,int idx); | 1412 | void *SSL_SESSION_get_ex_data(const SSL_SESSION *ss,int idx); |
| 1411 | int SSL_SESSION_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 1413 | int SSL_SESSION_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, |
| 1412 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); | 1414 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); |
| 1413 | 1415 | ||
| 1414 | int SSL_CTX_set_ex_data(SSL_CTX *ssl,int idx,void *data); | 1416 | int SSL_CTX_set_ex_data(SSL_CTX *ssl,int idx,void *data); |
| 1415 | void *SSL_CTX_get_ex_data(SSL_CTX *ssl,int idx); | 1417 | void *SSL_CTX_get_ex_data(const SSL_CTX *ssl,int idx); |
| 1416 | int SSL_CTX_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 1418 | int SSL_CTX_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, |
| 1417 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); | 1419 | CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func); |
| 1418 | 1420 | ||
| @@ -1603,6 +1605,7 @@ void ERR_load_SSL_strings(void); | |||
| 1603 | #define SSL_F_SSL_SET_TRUST 228 | 1605 | #define SSL_F_SSL_SET_TRUST 228 |
| 1604 | #define SSL_F_SSL_SET_WFD 196 | 1606 | #define SSL_F_SSL_SET_WFD 196 |
| 1605 | #define SSL_F_SSL_SHUTDOWN 224 | 1607 | #define SSL_F_SSL_SHUTDOWN 224 |
| 1608 | #define SSL_F_SSL_UNDEFINED_CONST_FUNCTION 243 | ||
| 1606 | #define SSL_F_SSL_UNDEFINED_FUNCTION 197 | 1609 | #define SSL_F_SSL_UNDEFINED_FUNCTION 197 |
| 1607 | #define SSL_F_SSL_USE_CERTIFICATE 198 | 1610 | #define SSL_F_SSL_USE_CERTIFICATE 198 |
| 1608 | #define SSL_F_SSL_USE_CERTIFICATE_ASN1 199 | 1611 | #define SSL_F_SSL_USE_CERTIFICATE_ASN1 199 |
| @@ -1741,6 +1744,7 @@ void ERR_load_SSL_strings(void); | |||
| 1741 | #define SSL_R_NULL_SSL_CTX 195 | 1744 | #define SSL_R_NULL_SSL_CTX 195 |
| 1742 | #define SSL_R_NULL_SSL_METHOD_PASSED 196 | 1745 | #define SSL_R_NULL_SSL_METHOD_PASSED 196 |
| 1743 | #define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED 197 | 1746 | #define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED 197 |
| 1747 | #define SSL_R_ONLY_TLS_ALLOWED_IN_FIPS_MODE 1115 | ||
| 1744 | #define SSL_R_PACKET_LENGTH_TOO_LONG 198 | 1748 | #define SSL_R_PACKET_LENGTH_TOO_LONG 198 |
| 1745 | #define SSL_R_PATH_TOO_LONG 270 | 1749 | #define SSL_R_PATH_TOO_LONG 270 |
| 1746 | #define SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE 199 | 1750 | #define SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE 199 |
