Lines Matching defs:int

28 static int ssl_undefined_function_1(SSL *ssl, SSL3_RECORD *r, size_t s, int t,
34 static int ssl_undefined_function_2(SSL *ssl, SSL3_RECORD *r, unsigned char *s,
35 int t)
40 static int ssl_undefined_function_3(SSL *ssl, unsigned char *r,
46 static int ssl_undefined_function_4(SSL *ssl, int r)
57 static int ssl_undefined_function_6(int r)
62 static int ssl_undefined_function_7(SSL *ssl, unsigned char *r, size_t s,
64 const unsigned char *v, size_t w, int x)
90 int (*func_read) (SSL *, void *, size_t, size_t *);
91 int (*func_write) (SSL *, const void *, size_t, size_t *);
92 int (*func_other) (SSL *);
99 int nid;
112 static int dane_ctx_enable(struct dane_ctx_st *dctx)
117 int n = ((int)mdmax) + 1; /* int to handle PrivMatch(255) */
188 static int ssl_dane_dup(SSL *to, SSL *from)
190 int num;
191 int i;
217 static int dane_mtype_set(struct dane_ctx_st *dctx,
220 int i;
230 int n = ((int)mtype) + 1;
269 static int dane_tlsa_add(SSL_DANE *dane,
276 int ilen = (int)dlen;
277 int i;
278 int num;
446 static int ssl_check_allowed_versions(int min_version, int max_version)
448 int minisdtls = 0, maxisdtls = 0;
573 int SSL_clear(SSL *s)
653 int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth)
861 int SSL_is_dtls(const SSL *s)
866 int SSL_up_ref(SSL *s)
868 int i;
878 int SSL_CTX_set_session_id_context(SSL_CTX *ctx, const unsigned char *sid_ctx,
879 unsigned int sid_ctx_len)
891 int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,
892 unsigned int sid_ctx_len)
904 int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb)
913 int SSL_set_generate_session_id(SSL *ssl, GEN_SESSION_CB cb)
922 int SSL_has_matching_session_id(const SSL *ssl, const unsigned char *id,
923 unsigned int id_len)
948 int SSL_CTX_set_purpose(SSL_CTX *s, int purpose)
953 int SSL_set_purpose(SSL *s, int purpose)
958 int SSL_CTX_set_trust(SSL_CTX *s, int trust)
963 int SSL_set_trust(SSL *s, int trust)
968 int SSL_set1_host(SSL *s, const char *hostname)
978 int SSL_add1_host(SSL *s, const char *hostname)
1007 void SSL_set_hostflags(SSL *s, unsigned int flags)
1017 int SSL_CTX_dane_enable(SSL_CTX *ctx)
1038 int SSL_dane_enable(SSL *s, const char *basedomain)
1097 int SSL_get0_dane_authority(SSL *s, X509 **mcert, EVP_PKEY **mspki)
1112 int SSL_get0_dane_tlsa(SSL *s, uint8_t *usage, uint8_t *selector,
1139 int SSL_dane_tlsa_add(SSL *s, uint8_t usage, uint8_t selector,
1145 int SSL_CTX_dane_mtype_set(SSL_CTX *ctx, const EVP_MD *md, uint8_t mtype,
1151 int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm)
1156 int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm)
1178 int i;
1351 int SSL_get_fd(const SSL *s)
1356 int SSL_get_rfd(const SSL *s)
1358 int ret = -1;
1368 int SSL_get_wfd(const SSL *s)
1370 int ret = -1;
1381 int SSL_set_fd(SSL *s, int fd)
1383 int ret = 0;
1408 int SSL_set_wfd(SSL *s, int fd)
1413 || (int)BIO_get_fd(rbio, NULL) != fd) {
1438 int SSL_set_rfd(SSL *s, int fd)
1443 || ((int)BIO_get_fd(wbio, NULL) != fd)) {
1485 int SSL_get_verify_mode(const SSL *s)
1490 int SSL_get_verify_depth(const SSL *s)
1495 int (*SSL_get_verify_callback(const SSL *s)) (int, X509_STORE_CTX *) {
1499 int SSL_CTX_get_verify_mode(const SSL_CTX *ctx)
1504 int SSL_CTX_get_verify_depth(const SSL_CTX *ctx)
1509 int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx)) (int, X509_STORE_CTX *) {
1513 void SSL_set_verify(SSL *s, int mode,
1514 int (*callback) (int ok, X509_STORE_CTX *ctx))
1521 void SSL_set_verify_depth(SSL *s, int depth)
1526 void SSL_set_read_ahead(SSL *s, int yes)
1531 int SSL_get_read_ahead(const SSL *s)
1536 int SSL_pending(const SSL *s)
1550 return pending < INT_MAX ? (int)pending : INT_MAX;
1553 int SSL_has_pending(const SSL *s)
1622 int SSL_copy_session_id(SSL *t, const SSL *f)
1624 int i;
1643 if (!SSL_set_session_id_context(t, f->sid_ctx, (int)f->sid_ctx_length)) {
1651 int SSL_CTX_check_private_key(const SSL_CTX *ctx)
1666 int SSL_check_private_key(const SSL *ssl)
1684 int SSL_waiting_for_async(SSL *s)
1692 int SSL_get_all_async_fds(SSL *s, OSSL_ASYNC_FD *fds, size_t *numfds)
1701 int SSL_get_changed_async_fds(SSL *s, OSSL_ASYNC_FD *addfd, size_t *numaddfds,
1712 int SSL_CTX_set_async_callback(SSL_CTX *ctx, SSL_async_callback_fn callback)
1718 int SSL_CTX_set_async_callback_arg(SSL_CTX *ctx, void *arg)
1724 int SSL_set_async_callback(SSL *s, SSL_async_callback_fn callback)
1730 int SSL_set_async_callback_arg(SSL *s, void *arg)
1736 int SSL_get_async_status(SSL *s, int *status)
1746 int SSL_accept(SSL *s)
1756 int SSL_connect(SSL *s)
1771 static int ssl_async_wait_ctx_cb(void *arg)
1778 static int ssl_start_async_job(SSL *s, struct ssl_async_args *args,
1779 int (*func) (void *))
1781 int ret;
1816 static int ssl_io_intern(void *vargs)
1838 int ssl_read_internal(SSL *s, void *buf, size_t num, size_t *readbytes)
1863 int ret;
1879 int SSL_read(SSL *s, void *buf, int num)
1881 int ret;
1896 ret = (int)readbytes;
1901 int SSL_read_ex(SSL *s, void *buf, size_t num, size_t *readbytes)
1903 int ret = ssl_read_internal(s, buf, num, readbytes);
1910 int SSL_read_early_data(SSL *s, void *buf, size_t num, size_t *readbytes)
1912 int ret;
1964 int SSL_get_early_data_status(const SSL *s)
1969 static int ssl_peek_internal(SSL *s, void *buf, size_t num, size_t *readbytes)
1981 int ret;
1997 int SSL_peek(SSL *s, void *buf, int num)
1999 int ret;
2014 ret = (int)readbytes;
2020 int SSL_peek_ex(SSL *s, void *buf, size_t num, size_t *readbytes)
2022 int ret = ssl_peek_internal(s, buf, num, readbytes);
2029 int ssl_write_internal(SSL *s, const void *buf, size_t num, size_t *written)
2052 int ret;
2069 ossl_ssize_t SSL_sendfile(SSL *s, int fd, off_t offset, size_t size, int flags)
2133 int SSL_write(SSL *s, const void *buf, int num)
2135 int ret;
2150 ret = (int)written;
2155 int SSL_write_ex(SSL *s, const void *buf, size_t num, size_t *written)
2157 int ret = ssl_write_internal(s, buf, num, written);
2164 int SSL_write_early_data(SSL *s, const void *buf, size_t num, size_t *written)
2166 int ret, early_data_state;
2235 int SSL_shutdown(SSL *s)
2268 int SSL_key_update(SSL *s, int updatetype)
2296 int SSL_get_key_update_type(const SSL *s)
2305 static int can_renegotiate(const SSL *s)
2320 int SSL_renegotiate(SSL *s)
2330 int SSL_renegotiate_abbreviated(SSL *s)
2340 int SSL_renegotiate_pending(const SSL *s)
2349 int SSL_new_session_ticket(SSL *s)
2362 long SSL_ctrl(SSL *s, int cmd, long larg, void *parg)
2428 return (int)s->s3.tmp.ciphers_rawlen;
2441 && ssl_set_version_bound(s->ctx->method->version, (int)larg,
2447 && ssl_set_version_bound(s->ctx->method->version, (int)larg,
2456 long SSL_callback_ctrl(SSL *s, int cmd, void (*fp) (void))
2461 (int write_p, int version, int content_type,
2476 static int ssl_tsan_load(SSL_CTX *ctx, TSAN_QUALIFIER int *stat)
2478 int res = 0;
2487 long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg)
2590 && ssl_set_version_bound(ctx->method->version, (int)larg,
2596 && ssl_set_version_bound(ctx->method->version, (int)larg,
2605 long SSL_CTX_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp) (void))
2610 (int write_p, int version, int content_type,
2620 int ssl_cipher_id_cmp(const SSL_CIPHER *a, const SSL_CIPHER *b)
2629 int ssl_cipher_ptr_id_cmp(const SSL_CIPHER *const *ap,
2663 int i;
2701 const char *SSL_get_cipher_list(const SSL *s, int n)
2730 static int cipher_list_tls12_num(STACK_OF(SSL_CIPHER) *sk)
2732 int i, num = 0;
2747 int SSL_CTX_set_cipher_list(SSL_CTX *ctx, const char *str)
2771 int SSL_set_cipher_list(SSL *s, const char *str)
2788 char *SSL_get_shared_ciphers(const SSL *s, char *buf, int size)
2793 int i;
2810 int n;
2842 const char *SSL_get_servername(const SSL *s, const int type)
2848 int server = s->handshake_func == NULL ? 0 : s->server;
2908 int SSL_get_servername_type(const SSL *s)
2935 int SSL_select_next_proto(unsigned char **out, unsigned char *outlen,
2937 unsigned int server_len,
2938 const unsigned char *client, unsigned int client_len)
3006 *len = (unsigned int)s->ext.npn_len;
3047 static int alpn_value_ok(const unsigned char *protos, unsigned int protos_len)
3049 unsigned int idx;
3065 int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos,
3066 unsigned int protos_len)
3097 int SSL_set_alpn_protos(SSL *ssl, const unsigned char *protos,
3098 unsigned int protos_len)
3144 unsigned int *len)
3150 *len = (unsigned int)ssl->s3.alpn_selected_len;
3153 int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
3156 int use_context)
3167 int SSL_export_keying_material_early(SSL *s, unsigned char *out, size_t olen,
3206 static int ssl_session_cmp(const SSL_SESSION *a, const SSL_SESSION *b)
3438 int SSL_CTX_up_ref(SSL_CTX *ctx)
3440 int i;
3452 int i;
3576 int (*cb) (X509_STORE_CTX *, void *),
3583 void SSL_CTX_set_verify(SSL_CTX *ctx, int mode,
3584 int (*cb) (int, X509_STORE_CTX *))
3590 void SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth)
3595 void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb) (SSL *ssl, void *arg), void *arg)
3600 void SSL_set_cert_cb(SSL *s, int (*cb) (SSL *ssl, void *arg), void *arg)
3609 int rsa_enc, rsa_sign, dh_tmp, dsa_sign;
3611 int have_ecc_cert, ecdsa_ok;
3709 int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s)
3721 int ssl_get_server_cert_serverinfo(SSL *s, const unsigned char **serverinfo,
3735 void ssl_update_cache(SSL *s, int mode)
3737 int i;
3797 TSAN_QUALIFIER int *stat;
3818 int SSL_set_ssl_method(SSL *s, const SSL_METHOD *meth)
3820 int ret = 1;
3824 int (*hf) (SSL *) = s->handshake_func;
3842 int SSL_get_error(const SSL *s, int i)
3844 int reason;
3926 static int ssl_do_handshake_intern(void *vargs)
3937 int SSL_do_handshake(SSL *s)
3939 int ret = 1;
3983 int ssl_undefined_function(SSL *s)
3989 int ssl_undefined_void_function(void)
3995 int ssl_undefined_const_function(const SSL *s)
4000 const SSL_METHOD *ssl_bad_method(int ver)
4006 const char *ssl_protocol_to_string(int version)
4044 static int dup_ca_names(STACK_OF(X509_NAME) **dst, STACK_OF(X509_NAME) *src)
4048 int i;
4077 int i;
4116 (int)s->sid_ctx_length))
4258 int ssl_init_wbio_buffer(SSL *s)
4279 int ssl_free_wbio_buffer(SSL *s)
4292 void SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode)
4297 int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx)
4302 void SSL_set_quiet_shutdown(SSL *s, int mode)
4307 int SSL_get_quiet_shutdown(const SSL *s)
4312 void SSL_set_shutdown(SSL *s, int mode)
4317 int SSL_get_shutdown(const SSL *s)
4322 int SSL_version(const SSL *s)
4327 int SSL_client_version(const SSL *s)
4384 int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx)
4390 int SSL_CTX_set_default_verify_dir(SSL_CTX *ctx)
4408 int SSL_CTX_set_default_verify_file(SSL_CTX *ctx)
4427 int SSL_CTX_set_default_verify_store(SSL_CTX *ctx)
4445 int SSL_CTX_load_verify_file(SSL_CTX *ctx, const char *CAfile)
4451 int SSL_CTX_load_verify_dir(SSL_CTX *ctx, const char *CApath)
4456 int SSL_CTX_load_verify_store(SSL_CTX *ctx, const char *CAstore)
4462 int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,
4475 void (*cb) (const SSL *ssl, int type, int val))
4485 int /* type */ ,
4486 int /* val */ ) {
4531 int SSL_SESSION_set1_master_key(SSL_SESSION *sess, const unsigned char *in,
4543 int SSL_set_ex_data(SSL *s, int idx, void *arg)
4548 void *SSL_get_ex_data(const SSL *s, int idx)
4553 int SSL_CTX_set_ex_data(SSL_CTX *s, int idx, void *arg)
4558 void *SSL_CTX_get_ex_data(const SSL_CTX *s, int idx)
4581 int SSL_want(const SSL *s)
4587 int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *identity_hint)
4603 int SSL_use_psk_identity_hint(SSL *s, const char *identity_hint)
4680 void (*cb) (int write_p, int version,
4681 int content_type, const void *buf,
4688 void (*cb) (int write_p, int version,
4689 int content_type, const void *buf,
4696 int (*cb) (SSL *ssl,
4697 int
4705 int (*cb) (SSL *ssl,
4706 int is_forward_secure))
4713 size_t (*cb) (SSL *ssl, int type,
4729 int SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size)
4741 int SSL_set_record_padding_callback(SSL *ssl,
4742 size_t (*cb) (SSL *ssl, int type,
4765 int SSL_set_block_padding(SSL *ssl, size_t block_size)
4777 int SSL_set_num_tickets(SSL *s, size_t num_tickets)
4789 int SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets)
4828 int ssl_handshake_hash(SSL *s, unsigned char *out, size_t outlen,
4833 int hashleni = EVP_MD_CTX_get_size(hdgst);
4834 int ret = 0;
4861 int SSL_session_reused(const SSL *s)
4866 int SSL_is_server(const SSL *s)
4872 void SSL_set_debug(SSL *s, int debug)
4880 void SSL_set_security_level(SSL *s, int level)
4885 int SSL_get_security_level(const SSL *s)
4891 int (*cb) (const SSL *s, const SSL_CTX *ctx,
4892 int op, int bits, int nid,
4898 int (*SSL_get_security_callback(const SSL *s)) (const SSL *s,
4899 const SSL_CTX *ctx, int op,
4900 int bits, int nid, void *other,
4915 void SSL_CTX_set_security_level(SSL_CTX *ctx, int level)
4920 int SSL_CTX_get_security_level(const SSL_CTX *ctx)
4926 int (*cb) (const SSL *s, const SSL_CTX *ctx,
4927 int op, int bits, int nid,
4933 int (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s,
4935 int op, int bits,
4936 int nid,
5000 static int ct_move_scts(STACK_OF(SCT) **dst, STACK_OF(SCT) *src,
5003 int scts_moved = 0;
5033 static int ct_extract_tls_extension_scts(SSL *s)
5035 int scts_extracted = 0;
5057 static int ct_extract_ocsp_response_scts(SSL *s)
5060 int scts_extracted = 0;
5065 int i;
5071 rsp = d2i_OCSP_RESPONSE(NULL, &p, (int)s->ext.ocsp.resp_len);
5108 static int ct_extract_x509v3_extension_scts(SSL *s)
5110 int scts_extracted = 0;
5146 static int ct_permissive(const CT_POLICY_EVAL_CTX * ctx,
5152 static int ct_strict(const CT_POLICY_EVAL_CTX * ctx,
5155 int count = scts != NULL ? sk_SCT_num(scts) : 0;
5156 int i;
5160 int status = SCT_get_validation_status(sct);
5169 int SSL_set_ct_validation_callback(SSL *s, ssl_ct_validation_cb callback,
5197 int SSL_CTX_set_ct_validation_callback(SSL_CTX *ctx,
5216 int SSL_ct_is_enabled(const SSL *s)
5221 int SSL_CTX_ct_is_enabled(const SSL_CTX *ctx)
5226 int ssl_validate_ct(SSL *s)
5228 int ret = 0;
5325 int SSL_CTX_enable_ct(SSL_CTX *ctx, int validation_mode)
5338 int SSL_enable_ct(SSL *s, int validation_mode)
5351 int SSL_CTX_set_default_ctlog_list_file(SSL_CTX *ctx)
5356 int SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path)
5381 int SSL_client_hello_isv2(SSL *s)
5388 unsigned int SSL_client_hello_get0_legacy_version(SSL *s)
5431 int SSL_client_hello_get1_extensions_present(SSL *s, int **out, size_t *outlen)
5434 int *present;
5469 int SSL_client_hello_get0_ext(SSL *s, unsigned int type, const unsigned char **out,
5490 int SSL_free_buffers(SSL *ssl)
5504 int SSL_alloc_buffers(SSL *ssl)
5519 static int nss_keylog_int(const char *prefix,
5572 int ssl_log_rsa_client_key_exchange(SSL *ssl,
5592 int ssl_log_secret(SSL *ssl,
5607 int ssl_cache_cipherlist(SSL *s, PACKET *cipher_suites, int sslv2format)
5609 int n;
5630 unsigned int leadbyte;
5672 int SSL_bytes_to_cipher_list(SSL *s, const unsigned char *bytes, size_t len,
5673 int isv2format, STACK_OF(SSL_CIPHER) **sk,
5683 int bytes_to_cipher_list(SSL *s, PACKET *cipher_suites,
5686 int sslv2format, int fatal)
5691 int n;
5769 int SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data)
5781 int SSL_set_max_early_data(SSL *s, uint32_t max_early_data)
5793 int SSL_CTX_set_recv_max_early_data(SSL_CTX *ctx, uint32_t recv_max_early_data)
5805 int SSL_set_recv_max_early_data(SSL *s, uint32_t recv_max_early_data)
5817 __owur unsigned int ssl_get_max_send_fragment(const SSL *ssl)
5827 __owur unsigned int ssl_get_split_send_fragment(const SSL *ssl)
5842 int SSL_stateless(SSL *s)
5844 int ret;
5865 void SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val)
5870 void SSL_set_post_handshake_auth(SSL *ssl, int val)
5875 int SSL_verify_client_post_handshake(SSL *ssl)
5922 int SSL_CTX_set_session_ticket_cb(SSL_CTX *ctx,
5950 int nid,
5970 int ssl_evp_cipher_up_ref(const EVP_CIPHER *cipher)
5998 int nid,
6014 int ssl_evp_md_up_ref(const EVP_MD *md)
6041 int SSL_set0_tmp_dh_pkey(SSL *s, EVP_PKEY *dhpkey)
6053 int SSL_CTX_set0_tmp_dh_pkey(SSL_CTX *ctx, EVP_PKEY *dhpkey)