• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/ssl/

Lines Matching refs:SSL

5  * This package is an SSL implementation written
7 * The implementation was written so as to conform with Netscapes SSL.
12 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
390 typedef int (*tls_session_ticket_ext_cb_fn) (SSL *s,
393 typedef int (*tls_session_secret_cb_fn) (SSL *s, void *secret,
402 typedef int (*custom_ext_add_cb) (SSL *s, unsigned int ext_type,
406 typedef void (*custom_ext_free_cb) (SSL *s, unsigned int ext_type,
409 typedef int (*custom_ext_parse_cb) (SSL *s, unsigned int ext_type,
440 int (*ssl_new) (SSL *s);
441 void (*ssl_clear) (SSL *s);
442 void (*ssl_free) (SSL *s);
443 int (*ssl_accept) (SSL *s);
444 int (*ssl_connect) (SSL *s);
445 int (*ssl_read) (SSL *s, void *buf, int len);
446 int (*ssl_peek) (SSL *s, void *buf, int len);
447 int (*ssl_write) (SSL *s, const void *buf, int len);
448 int (*ssl_shutdown) (SSL *s);
449 int (*ssl_renegotiate) (SSL *s);
450 int (*ssl_renegotiate_check) (SSL *s);
451 long (*ssl_get_message) (SSL *s, int st1, int stn, int mt, long
453 int (*ssl_read_bytes) (SSL *s, int type, unsigned char *buf, int len,
455 int (*ssl_write_bytes) (SSL *s, int type, const void *buf_, int len);
456 int (*ssl_dispatch_alert) (SSL *s);
457 long (*ssl_ctrl) (SSL *s, int cmd, long larg, void *parg);
461 int (*ssl_pending) (const SSL *s);
468 long (*ssl_callback_ctrl) (SSL *s, int cb_id, void (*fp) (void));
476 * SSLversion INTEGER, -- SSL version number
596 * Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added in
598 * workaround is not needed. Unfortunately some broken SSL/TLS
781 * Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, they
837 size_t len, SSL *ssl, void *arg));
838 void SSL_set_msg_callback(SSL *ssl,
841 size_t len, SSL *ssl, void *arg));
853 int (*TLS_ext_srp_username_callback) (SSL *, int *, void *);
855 int (*SRP_verify_param_callback) (SSL *, void *);
857 char *(*SRP_give_srp_client_pwd_callback) (SSL *, void *);
869 int SSL_SRP_CTX_init(SSL *s);
871 int SSL_SRP_CTX_free(SSL *ctx);
873 int SSL_srp_server_param_with_username(SSL *s, int *ad);
874 int SRP_generate_server_master_secret(SSL *s, unsigned char *master_key);
875 int SRP_Calc_A_param(SSL *s);
876 int SRP_generate_client_master_secret(SSL *s, unsigned char *master_key);
891 * This callback type is used inside SSL_CTX, SSL, and in the functions that
892 * set them. It is used to override the generation of SSL/TLS session IDs in
895 * otherwise the SSL handshake will fail with an error - callbacks can do
905 typedef int (*GEN_SESSION_CB) (const SSL *ssl, unsigned char *id,
965 int sess_connect; /* SSL new conn - started */
966 int sess_connect_renegotiate; /* SSL reneg - requested */
967 int sess_connect_good; /* SSL new conne/reneg - finished */
968 int sess_accept; /* SSL new accept - started */
969 int sess_accept_renegotiate; /* SSL reneg - requested */
970 int sess_accept_good; /* SSL accept/reneg - finished */
999 int (*client_cert_cb) (SSL *ssl, X509 **x509, EVP_PKEY **pkey);
1002 int (*app_gen_cookie_cb) (SSL *ssl, unsigned char *cookie,
1006 int (*app_verify_cookie_cb) (SSL *ssl, unsigned char *cookie,
1018 /* Default values used when no per-SSL value is defined follow */
1020 /* used if SSL's info_callback is NULL */
1021 void (*info_callback) (const SSL *ssl, int type, int val);
1027 * Default values to use in SSL structures follow (these are copied by
1040 const void *buf, size_t len, SSL *ssl, void *arg);
1046 /* called 'verify_callback' in the SSL */
1076 int (*tlsext_servername_callback) (SSL *, int *, void *);
1083 int (*tlsext_ticket_key_cb) (SSL *ssl,
1090 int (*tlsext_status_cb) (SSL *ssl, void *arg);
1094 int (*tlsext_opaque_prf_input_callback) (SSL *, void *peerinput,
1101 unsigned int (*psk_client_callback) (SSL *ssl, const char *hint,
1106 unsigned int (*psk_server_callback) (SSL *ssl, const char *identity,
1131 int (*next_protos_advertised_cb) (SSL *s, const unsigned char **buf,
1138 int (*next_proto_select_cb) (SSL *s, unsigned char **out,
1162 int (*alpn_select_cb) (SSL *s,
1177 /* EC extension values inherited by SSL structure */
1247 void (*cb) (const SSL *ssl, int type,
1249 void (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type,
1252 int (*client_cert_cb) (SSL *ssl, X509 **x509,
1254 int (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)) (SSL *ssl, X509 **x509,
1260 int (*app_gen_cookie_cb) (SSL *ssl,
1266 int (*app_verify_cookie_cb) (SSL *ssl,
1273 int (*cb) (SSL *ssl,
1279 int (*cb) (SSL *ssl,
1285 void SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,
1302 int SSL_set_alpn_protos(SSL *ssl, const unsigned char *protos,
1305 int (*cb) (SSL *ssl,
1311 void SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data,
1322 unsigned int (*psk_client_callback) (SSL
1338 void SSL_set_psk_client_callback(SSL *ssl,
1339 unsigned int (*psk_client_callback) (SSL
1356 unsigned int (*psk_server_callback) (SSL
1367 void SSL_set_psk_server_callback(SSL *ssl,
1368 unsigned int (*psk_server_callback) (SSL
1380 int SSL_use_psk_identity_hint(SSL *s, const char *identity_hint);
1381 const char *SSL_get_psk_identity_hint(const SSL *s);
1382 const char *SSL_get_psk_identity(const SSL *s);
1458 int (*handshake_func) (SSL *);
1498 const void *buf, size_t len, SSL *ssl, void *arg);
1551 void (*info_callback) (const SSL *ssl, int type, int val);
1561 unsigned int (*psk_client_callback) (SSL *ssl, const char *hint,
1566 unsigned int (*psk_server_callback) (SSL *ssl, const char *identity,
1593 void (*tlsext_debug_cb) (SSL *s, int client_server, int type,
1717 * indicate where we are up to in the SSL connection establishment. The
1768 size_t SSL_get_finished(const SSL *s, void *buf, size_t count);
1769 size_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count);
2137 int SSL_want(const SSL *s);
2138 int SSL_clear(SSL *s);
2142 const SSL_CIPHER *SSL_get_current_cipher(const SSL *s);
2148 int SSL_get_fd(const SSL *s);
2149 int SSL_get_rfd(const SSL *s);
2150 int SSL_get_wfd(const SSL *s);
2151 const char *SSL_get_cipher_list(const SSL *s, int n);
2152 char *SSL_get_shared_ciphers(const SSL *s, char *buf, int len);
2153 int SSL_get_read_ahead(const SSL *s);
2154 int SSL_pending(const SSL *s);
2156 int SSL_set_fd(SSL *s, int fd);
2157 int SSL_set_rfd(SSL *s, int fd);
2158 int SSL_set_wfd(SSL *s, int fd);
2161 void SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);
2162 BIO *SSL_get_rbio(const SSL *s);
2163 BIO *SSL_get_wbio(const SSL *s);
2165 int SSL_set_cipher_list(SSL *s, const char *str);
2166 void SSL_set_read_ahead(SSL *s, int yes);
2167 int SSL_get_verify_mode(const SSL *s);
2168 int SSL_get_verify_depth(const SSL *s);
2169 int (*SSL_get_verify_callback(const SSL *s)) (int, X509_STORE_CTX *);
2170 void SSL_set_verify(SSL *s, int mode,
2172 void SSL_set_verify_depth(SSL *s, int depth);
2173 void SSL_set_cert_cb(SSL *s, int (*cb) (SSL *ssl, void *arg), void *arg);
2175 int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);
2177 int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, unsigned char *d, long len);
2178 int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);
2179 int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d,
2181 int SSL_use_certificate(SSL *ssl, X509 *x);
2182 int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);
2195 int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);
2196 int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);
2197 int SSL_use_certificate_file(SSL *ssl, const char *file, int type);
2217 const char *SSL_state_string(const SSL *s);
2218 const char *SSL_rstate_string(const SSL *s);
2219 const char *SSL_state_string_long(const SSL *s);
2220 const char *SSL_rstate_string_long(const SSL *s);
2225 void SSL_copy_session_id(SSL *to, const SSL *from);
2242 int SSL_set_session(SSL *to, SSL_SESSION *session);
2246 int SSL_set_generate_session_id(SSL *, GEN_SESSION_CB);
2247 int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
2253 X509 *SSL_get_peer_certificate(const SSL *s);
2256 STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);
2268 void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb) (SSL *ssl, void *arg),
2286 int SSL_check_private_key(const SSL *ctx);
2291 SSL *SSL_new(SSL_CTX *ctx);
2292 int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,
2296 int SSL_set_purpose(SSL *s, int purpose);
2298 int SSL_set_trust(SSL *s, int trust);
2301 int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm);
2304 X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);
2311 char *(*cb) (SSL *, void *));
2313 int (*cb) (SSL *, void *));
2315 int (*cb) (SSL *, int *, void *));
2318 int SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g,
2320 int SSL_set_srp_server_param_pw(SSL *s, const char *user, const char *pass,
2323 BIGNUM *SSL_get_srp_g(SSL *s);
2324 BIGNUM *SSL_get_srp_N(SSL *s);
2326 char *SSL_get_srp_username(SSL *s);
2327 char *SSL_get_srp_userinfo(SSL *s);
2330 void SSL_certs_clear(SSL *s);
2331 void SSL_free(SSL *ssl);
2332 int SSL_accept(SSL *ssl);
2333 int SSL_connect(SSL *ssl);
2334 int SSL_read(SSL *ssl, void *buf, int num);
2335 int SSL_peek(SSL *ssl, void *buf, int num);
2336 int SSL_write(SSL *ssl, const void *buf, int num);
2337 long SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg);
2338 long SSL_callback_ctrl(SSL *, int, void (*)(void));
2342 int SSL_get_error(const SSL *s, int ret_code);
2343 const char *SSL_get_version(const SSL *s);
2345 /* This sets the 'default' SSL version that SSL_new() will create */
2360 const SSL_METHOD *SSLv23_method(void); /* Negotiate highest available SSL/TLS
2363 * SSL/TLS version */
2365 * SSL/TLS version */
2391 STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s);
2393 int SSL_do_handshake(SSL *s);
2394 int SSL_renegotiate(SSL *s);
2395 int SSL_renegotiate_abbreviated(SSL *s);
2396 int SSL_renegotiate_pending(SSL *s);
2397 int SSL_shutdown(SSL *s);
2400 const SSL_METHOD *SSL_get_ssl_method(SSL *s);
2401 int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);
2407 void SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);
2409 STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);
2411 int SSL_add_client_CA(SSL *ssl, X509 *x);
2414 void SSL_set_connect_state(SSL *s);
2415 void SSL_set_accept_state(SSL *s);
2417 long SSL_get_default_timeout(const SSL *s);
2424 SSL *SSL_dup(SSL *ssl);
2426 X509 *SSL_get_certificate(const SSL *ssl);
2429 */ struct evp_pkey_st *SSL_get_privatekey(const SSL *ssl);
2436 void SSL_set_quiet_shutdown(SSL *ssl, int mode);
2437 int SSL_get_quiet_shutdown(const SSL *ssl);
2438 void SSL_set_shutdown(SSL *ssl, int mode);
2439 int SSL_get_shutdown(const SSL *ssl);
2440 int SSL_version(const SSL *ssl);
2445 SSL_SESSION *SSL_get_session(const SSL *ssl);
2446 SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */
2447 SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);
2448 SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);
2449 void SSL_set_info_callback(SSL *ssl,
2450 void (*cb) (const SSL *ssl, int type, int val));
2451 void (*SSL_get_info_callback(const SSL *ssl)) (const SSL *ssl, int type,
2453 int SSL_state(const SSL *ssl);
2454 void SSL_set_state(SSL *ssl, int state);
2456 void SSL_set_verify_result(SSL *ssl, long v);
2457 long SSL_get_verify_result(const SSL *ssl);
2459 int SSL_set_ex_data(SSL *ssl, int idx, void *data);
2460 void *SSL_get_ex_data(const SSL *ssl, int idx);
2511 RSA *(*cb) (SSL *ssl, int is_export,
2514 void SSL_set_tmp_rsa_callback(SSL *ssl,
2515 RSA *(*cb) (SSL *ssl, int is_export,
2520 DH *(*dh) (SSL *ssl, int is_export,
2522 void SSL_set_tmp_dh_callback(SSL *ssl,
2523 DH *(*dh) (SSL *ssl, int is_export,
2528 EC_KEY *(*ecdh) (SSL *ssl, int is_export,
2530 void SSL_set_tmp_ecdh_callback(SSL *ssl,
2531 EC_KEY *(*ecdh) (SSL *ssl, int is_export,
2536 const COMP_METHOD *SSL_get_current_compression(SSL *s);
2537 const COMP_METHOD *SSL_get_current_expansion(SSL *s);
2545 const void *SSL_get_current_compression(SSL *s);
2546 const void *SSL_get_current_expansion(SSL *s);
2552 const SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr);
2555 int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len);
2557 int SSL_set_session_ticket_ext_cb(SSL *s, tls_session_ticket_ext_cb_fn cb,
2561 int SSL_set_session_secret_cb(SSL *s,
2565 void SSL_set_debug(SSL *s, int debug);
2566 int SSL_cache_hit(SSL *s);
2567 int SSL_is_server(SSL *s);
2576 void SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);
2585 const void *buf, size_t len, SSL *ssl, void *arg);
2600 /* Error codes for the SSL functions. */