Home
last modified time | relevance | path

Searched refs:cctx (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/
H A Dssl_conf.c105 static void ssl_set_option(SSL_CONF_CTX *cctx, unsigned int name_flags, in ssl_set_option() argument
109 if (cctx->poptions == NULL) in ssl_set_option()
116 pflags = cctx->pcert_flags; in ssl_set_option()
120 pflags = cctx->pvfy_flags; in ssl_set_option()
124 pflags = cctx->poptions; in ssl_set_option()
137 static int ssl_match_option(SSL_CONF_CTX *cctx, const ssl_flag_tbl *tbl, in ssl_match_option() argument
141 if (!(cctx->flags & tbl->name_flags & SSL_TFLAG_BOTH)) in ssl_match_option()
148 ssl_set_option(cctx, tbl->name_flags, tbl->option_value, onoff); in ssl_match_option()
154 SSL_CONF_CTX *cctx = usr; in ssl_set_option_list() local
175 for (i = 0, tbl = cctx->tbl; i < cctx->ntbl; i++, tbl++) { in ssl_set_option_list()
[all …]
H A Dssl_mcnf.c25 SSL_CONF_CTX *cctx = NULL; in ssl_do_config() local
47 cctx = SSL_CONF_CTX_new(); in ssl_do_config()
48 if (cctx == NULL) in ssl_do_config()
55 SSL_CONF_CTX_set_ssl(cctx, s); in ssl_do_config()
58 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in ssl_do_config()
64 SSL_CONF_CTX_set_flags(cctx, flags); in ssl_do_config()
69 rv = SSL_CONF_cmd(cctx, cmdstr, arg); in ssl_do_config()
80 rv = SSL_CONF_CTX_finish(cctx); in ssl_do_config()
82 SSL_CONF_CTX_free(cctx); in ssl_do_config()
/netbsd-src/crypto/external/bsd/openssl/dist/ssl/
H A Dssl_conf.c106 static void ssl_set_option(SSL_CONF_CTX *cctx, unsigned int name_flags, in ssl_set_option() argument
111 if (cctx->poptions == NULL) in ssl_set_option()
118 pflags = cctx->pcert_flags; in ssl_set_option()
122 pflags = cctx->pvfy_flags; in ssl_set_option()
127 *cctx->poptions |= option_value; in ssl_set_option()
129 *cctx->poptions &= ~option_value; in ssl_set_option()
142 static int ssl_match_option(SSL_CONF_CTX *cctx, const ssl_flag_tbl *tbl, in ssl_match_option() argument
146 if (!(cctx->flags & tbl->name_flags & SSL_TFLAG_BOTH)) in ssl_match_option()
154 ssl_set_option(cctx, tbl->name_flags, tbl->option_value, onoff); in ssl_match_option()
160 SSL_CONF_CTX *cctx = usr; in ssl_set_option_list() local
[all …]
H A Dssl_mcnf.c25 SSL_CONF_CTX *cctx = NULL; in ssl_do_config() local
48 cctx = SSL_CONF_CTX_new(); in ssl_do_config()
49 if (cctx == NULL) in ssl_do_config()
56 SSL_CONF_CTX_set_ssl(cctx, s); in ssl_do_config()
60 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in ssl_do_config()
67 SSL_CONF_CTX_set_flags(cctx, flags); in ssl_do_config()
75 rv = SSL_CONF_cmd(cctx, cmdstr, arg); in ssl_do_config()
79 if (!SSL_CONF_CTX_finish(cctx)) in ssl_do_config()
83 SSL_CONF_CTX_free(cctx); in ssl_do_config()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Dcompress.c128 dns_compress_init(dns_compress_t *cctx, int edns, isc_mem_t *mctx) { in dns_compress_init() argument
129 REQUIRE(cctx != NULL); in dns_compress_init()
132 cctx->edns = edns; in dns_compress_init()
133 cctx->mctx = mctx; in dns_compress_init()
134 cctx->count = 0; in dns_compress_init()
135 cctx->allowed = DNS_COMPRESS_ENABLED; in dns_compress_init()
136 cctx->arena_off = 0; in dns_compress_init()
138 memset(&cctx->table[0], 0, sizeof(cctx->table)); in dns_compress_init()
140 cctx->magic = CCTX_MAGIC; in dns_compress_init()
146 dns_compress_invalidate(dns_compress_t *cctx) { in dns_compress_invalidate() argument
[all …]
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Dcompress.c35 dns_compress_init(dns_compress_t *cctx, isc_mem_t *mctx,
40 REQUIRE(cctx != NULL);
48 mask = ARRAY_SIZE(cctx->smallset) - 1;
49 set = cctx->smallset;
56 *cctx = (dns_compress_t){
66 dns_compress_invalidate(dns_compress_t *cctx) {
67 REQUIRE(CCTX_VALID(cctx));
68 if (cctx->set != cctx->smallset) {
69 isc_mem_free(cctx
128 dns_compress_init(dns_compress_t * cctx,int edns,isc_mem_t * mctx) dns_compress_init() argument
146 dns_compress_invalidate(dns_compress_t * cctx) dns_compress_invalidate() argument
173 dns_compress_setmethods(dns_compress_t * cctx,unsigned int allowed) dns_compress_setmethods() argument
181 dns_compress_getmethods(dns_compress_t * cctx) dns_compress_getmethods() argument
187 dns_compress_disable(dns_compress_t * cctx) dns_compress_disable() argument
193 dns_compress_setsensitive(dns_compress_t * cctx,bool sensitive) dns_compress_setsensitive() argument
204 dns_compress_getsensitive(dns_compress_t * cctx) dns_compress_getsensitive() argument
211 dns_compress_getedns(dns_compress_t * cctx) dns_compress_getedns() argument
222 dns_compress_findglobal(dns_compress_t * cctx,const dns_name_t * name,dns_name_t * prefix,uint16_t * offset) dns_compress_findglobal() argument
377 dns_compress_add(dns_compress_t * cctx,const dns_name_t * name,const dns_name_t * prefix,uint16_t offset) dns_compress_add() argument
490 dns_compress_rollback(dns_compress_t * cctx,uint16_t offset) dns_compress_rollback() argument
[all...]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A De_aria.c507 EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX,ctx); in aria_ccm_init_key() local
514 &cctx->ks.ks); in aria_ccm_init_key()
515 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aria_ccm_init_key()
516 &cctx->ks, (block128_f) aria_encrypt); in aria_ccm_init_key()
521 cctx->str = NULL; in aria_ccm_init_key()
522 cctx->key_set = 1; in aria_ccm_init_key()
525 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), iv, 15 - cctx->L); in aria_ccm_init_key()
526 cctx->iv_set = 1; in aria_ccm_init_key()
533 EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX,c); in aria_ccm_ctrl() local
537 cctx->key_set = 0; in aria_ccm_ctrl()
[all …]
H A De_aes.c441 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,ctx); in aesni_ccm_init_key() local
446 &cctx->ks.ks); in aesni_ccm_init_key()
447 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key()
448 &cctx->ks, (block128_f) aesni_encrypt); in aesni_ccm_init_key()
449 cctx->str = enc ? (ccm128_f) aesni_ccm64_encrypt_blocks : in aesni_ccm_init_key()
451 cctx->key_set = 1; in aesni_ccm_init_key()
454 memcpy(EVP_CIPHER_CTX_iv_noconst(ctx), iv, 15 - cctx->L); in aesni_ccm_init_key()
455 cctx->iv_set = 1; in aesni_ccm_init_key()
879 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,ctx); in aes_t4_ccm_init_key() local
884 aes_t4_set_encrypt_key(key, bits, &cctx->ks.ks); in aes_t4_ccm_init_key()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A De_aria.c516 EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX,ctx); in aria_ccm_init_key() local
524 &cctx->ks.ks); in aria_ccm_init_key()
525 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aria_ccm_init_key()
526 &cctx->ks, (block128_f) ossl_aria_encrypt); in aria_ccm_init_key()
531 cctx->str = NULL; in aria_ccm_init_key()
532 cctx->key_set = 1; in aria_ccm_init_key()
535 memcpy(ctx->iv, iv, 15 - cctx->L); in aria_ccm_init_key()
536 cctx->iv_set = 1; in aria_ccm_init_key()
543 EVP_ARIA_CCM_CTX *cctx = EVP_C_DATA(EVP_ARIA_CCM_CTX,c); in aria_ccm_ctrl() local
547 cctx->key_set = 0; in aria_ccm_ctrl()
[all …]
H A De_aes.c317 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,ctx); in aesni_ccm_init_key() local
322 &cctx->ks.ks); in aesni_ccm_init_key()
323 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key()
324 &cctx->ks, (block128_f) aesni_encrypt); in aesni_ccm_init_key()
325 cctx->str = enc ? (ccm128_f) aesni_ccm64_encrypt_blocks : in aesni_ccm_init_key()
327 cctx->key_set = 1; in aesni_ccm_init_key()
330 memcpy(ctx->iv, iv, 15 - cctx->L); in aesni_ccm_init_key()
331 cctx->iv_set = 1; in aesni_ccm_init_key()
672 EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,ctx); in aes_t4_ccm_init_key() local
677 aes_t4_set_encrypt_key(key, bits, &cctx->ks.ks); in aes_t4_ccm_init_key()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/cmac/
H A Dcmac.c19 EVP_CIPHER_CTX *cctx; member
54 ctx->cctx = EVP_CIPHER_CTX_new(); in CMAC_CTX_new()
55 if (ctx->cctx == NULL) { in CMAC_CTX_new()
65 EVP_CIPHER_CTX_reset(ctx->cctx); in CMAC_CTX_cleanup()
75 return ctx->cctx; in CMAC_CTX_get0_cipher_ctx()
83 EVP_CIPHER_CTX_free(ctx->cctx); in CMAC_CTX_free()
92 if (!EVP_CIPHER_CTX_copy(out->cctx, in->cctx)) in CMAC_CTX_copy()
94 bl = EVP_CIPHER_CTX_block_size(in->cctx); in CMAC_CTX_copy()
112 if (!EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, NULL, zero_iv)) in CMAC_Init()
114 memset(ctx->tbl, 0, EVP_CIPHER_CTX_block_size(ctx->cctx)); in CMAC_Init()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/cmac/
H A Dcmac.c25 EVP_CIPHER_CTX *cctx; member
60 ctx->cctx = EVP_CIPHER_CTX_new(); in CMAC_CTX_new()
61 if (ctx->cctx == NULL) { in CMAC_CTX_new()
71 EVP_CIPHER_CTX_reset(ctx->cctx); in CMAC_CTX_cleanup()
81 return ctx->cctx; in CMAC_CTX_get0_cipher_ctx()
89 EVP_CIPHER_CTX_free(ctx->cctx); in CMAC_CTX_free()
99 if ((bl = EVP_CIPHER_CTX_get_block_size(in->cctx)) < 0) in CMAC_CTX_copy()
101 if (!EVP_CIPHER_CTX_copy(out->cctx, in->cctx)) in CMAC_CTX_copy()
121 if (!EVP_EncryptInit_ex(ctx->cctx, NULL, NULL, NULL, zero_iv)) in CMAC_Init()
123 memset(ctx->tbl, 0, EVP_CIPHER_CTX_get_block_size(ctx->cctx)); in CMAC_Init()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/gssapi/
H A Dtest_context.c150 gss_ctx_id_t *sctx, gss_ctx_id_t *cctx, in loop() argument
197 cctx, in loop()
282 wrapunwrap(gss_ctx_id_t cctx, gss_ctx_id_t sctx, int flags, gss_OID mechoid) in wrapunwrap() argument
292 maj_stat = gss_wrap(&min_stat, cctx, flags, 0, &input_token, in wrapunwrap()
319 wrapunwrap_iov(gss_ctx_id_t cctx, gss_ctx_id_t sctx, int flags, gss_OID mechoid) in wrapunwrap_iov() argument
394 maj_stat = gss_wrap_iov(&min_stat, cctx, dce_style_flag || flags & USE_CONF, 0, &conf_state, in wrapunwrap_iov()
468 wrapunwrap_aead(gss_ctx_id_t cctx, gss_ctx_id_t sctx, int flags, gss_OID mechoid) in wrapunwrap_aead() argument
489 maj_stat = gss_wrap_aead(&min_stat, cctx, dce_style_flag || flags & USE_CONF, in wrapunwrap_aead()
522 getverifymic(gss_ctx_id_t cctx, gss_ctx_id_t sctx, gss_OID mechoid) in getverifymic() argument
531 maj_stat = gss_get_mic(&min_stat, cctx, 0, &input_token, in getverifymic()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dsslapitest.c304 SSL_CTX *cctx = NULL, *sctx = NULL; in test_keylog() local
319 &sctx, &cctx, cert, privkey))) in test_keylog()
323 SSL_CTX_set_options(cctx, SSL_OP_NO_TLSv1_3); in test_keylog()
327 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "RSA"))) in test_keylog()
330 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) == NULL) in test_keylog()
333 SSL_CTX_set_keylog_callback(cctx, client_keylog_callback); in test_keylog()
334 if (!TEST_true(SSL_CTX_get_keylog_callback(cctx) in test_keylog()
343 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog()
375 SSL_CTX_free(cctx); in test_keylog()
384 SSL_CTX *cctx = NULL, *sctx = NULL; in test_keylog_no_master_key() local
[all …]
H A Ddtlstest.c57 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed() local
67 &sctx, &cctx, cert, privkey))) in test_dtls_unprocessed()
70 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES128-SHA"))) in test_dtls_unprocessed()
78 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in test_dtls_unprocessed()
117 SSL_CTX_free(cctx); in test_dtls_unprocessed()
151 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_drop_records() local
162 &sctx, &cctx, cert, privkey))) in test_dtls_drop_records()
167 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
195 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
243 SSL_CTX_free(cctx); in test_dtls_drop_records()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Ddtlstest.c73 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed() local
83 &sctx, &cctx, cert, privkey))) in test_dtls_unprocessed()
87 if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES128-SHA"))) in test_dtls_unprocessed()
92 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_dtls_unprocessed()
102 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in test_dtls_unprocessed()
141 SSL_CTX_free(cctx); in test_dtls_unprocessed()
193 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_drop_records() local
205 &sctx, &cctx, cert, privkey))) in test_dtls_drop_records()
211 || !TEST_true(SSL_CTX_set_cipher_list(cctx, in test_dtls_drop_records()
225 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
[all …]
/netbsd-src/external/mpl/bind/dist/tests/dns/
H A Dname_test.c129 unsigned int expanded_length, dns_compress_t *cctx, in compress_test() argument
149 assert_int_equal(dns_name_towire(name1, cctx, &source, NULL), in compress_test()
151 assert_int_equal(dns_name_towire(name2, cctx, &source, NULL), in compress_test()
153 assert_int_equal(dns_name_towire(name2, cctx, &source, NULL), in compress_test()
155 assert_int_equal(dns_name_towire(name3, cctx, &source, NULL), in compress_test()
160 assert_int_equal(dns_name_towire(name1, cctx, &source, &offset), in compress_test()
164 assert_int_equal(dns_name_towire(name2, cctx, &source, &offset), in ISC_RUN_TEST_IMPL()
166 assert_int_equal(dns_name_towire(name2, cctx, &source, &offset), in ISC_RUN_TEST_IMPL()
170 assert_int_equal(dns_name_towire(name3, cctx, &source, &offset), in ISC_RUN_TEST_IMPL()
196 dns_compress_t cctx; in ISC_RUN_TEST_IMPL()
165 dns_compress_t cctx; ISC_RUN_TEST_IMPL() local
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/include/dns/
H A Dcompress.h100 dns_compress_init(dns_compress_t *cctx, int edns, isc_mem_t *mctx);
118 dns_compress_invalidate(dns_compress_t *cctx);
128 dns_compress_setmethods(dns_compress_t *cctx, unsigned int allowed);
138 dns_compress_getmethods(dns_compress_t *cctx);
151 dns_compress_disable(dns_compress_t *cctx);
162 dns_compress_setsensitive(dns_compress_t *cctx, bool sensitive);
172 dns_compress_getsensitive(dns_compress_t *cctx);
182 dns_compress_getedns(dns_compress_t *cctx);
195 dns_compress_findglobal(dns_compress_t *cctx, const dns_name_t *name,
214 dns_compress_add(dns_compress_t *cctx, const dns_name_t *name,
[all …]
/netbsd-src/external/mpl/bind/dist/lib/dns/include/dns/
H A Dcompress.h115 dns_compress_init(dns_compress_t *cctx, isc_mem_t *mctx,
119 * 'cctx'.
129 *\li 'cctx' is a dns_compress_t structure on the stack.
132 *\li 'cctx' is initialized.
133 *\li 'dns_compress_getpermitted(cctx)' is true
137 dns_compress_invalidate(dns_compress_t *cctx);
141 * 'cctx', freeing any memory that has been allocated.
144 *\li 'cctx' is an initialized dns_compress_t
148 dns_compress_setpermitted(dns_compress_t *cctx, bool permitted);
155 *\li 'cctx' t
[all...]
/netbsd-src/crypto/external/bsd/openssl.old/dist/demos/bio/
H A Dserver-conf.c30 SSL_CONF_CTX *cctx = NULL; in main() local
57 cctx = SSL_CONF_CTX_new(); in main()
58 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_SERVER); in main()
59 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CERTIFICATE); in main()
60 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); in main()
61 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
65 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
82 if (!SSL_CONF_CTX_finish(cctx)) { in main()
H A Dclient-conf.c21 SSL_CONF_CTX *cctx = NULL; in main() local
47 cctx = SSL_CONF_CTX_new(); in main()
48 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); in main()
49 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); in main()
50 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
53 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
70 if (!SSL_CONF_CTX_finish(cctx)) { in main()
115 SSL_CONF_CTX_free(cctx); in main()
H A Dclient-arg.c20 SSL_CONF_CTX *cctx; in main() local
27 cctx = SSL_CONF_CTX_new(); in main()
28 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); in main()
29 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
33 rv = SSL_CONF_cmd_argv(cctx, &nargs, &args); in main()
62 if (!SSL_CONF_CTX_finish(cctx)) { in main()
107 SSL_CONF_CTX_free(cctx); in main()
/netbsd-src/crypto/external/bsd/openssl/dist/demos/bio/
H A Dclient-conf.c21 SSL_CONF_CTX *cctx = NULL; in main() local
47 cctx = SSL_CONF_CTX_new(); in main()
48 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); in main()
49 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); in main()
50 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
53 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
70 if (!SSL_CONF_CTX_finish(cctx)) { in main()
112 SSL_CONF_CTX_free(cctx); in main()
H A Dserver-conf.c30 SSL_CONF_CTX *cctx = NULL; in main() local
57 cctx = SSL_CONF_CTX_new(); in main()
58 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_SERVER); in main()
59 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CERTIFICATE); in main()
60 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); in main()
61 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
65 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
82 if (!SSL_CONF_CTX_finish(cctx)) { in main()
H A Dclient-arg.c20 SSL_CONF_CTX *cctx; in main() local
27 cctx = SSL_CONF_CTX_new(); in main()
28 SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); in main()
29 SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); in main()
33 rv = SSL_CONF_cmd_argv(cctx, &nargs, &args); in main()
62 if (!SSL_CONF_CTX_finish(cctx)) { in main()
104 SSL_CONF_CTX_free(cctx); in main()

12345678910>>...12