Home
last modified time | relevance | path

Searched refs:nm (Results 1 – 25 of 64) sorted by relevance

123

/openssl/test/
H A Dnamemap_internal_test.c21 OSSL_NAMEMAP *nm = NULL; in test_namemap_empty() local
25 && TEST_ptr(nm = ossl_namemap_new(NULL)) in test_namemap_empty()
29 ossl_namemap_free(nm); in test_namemap_empty()
33 static int test_namemap(OSSL_NAMEMAP *nm) in test_namemap() argument
58 OSSL_NAMEMAP *nm = ossl_namemap_new(NULL); in test_namemap_independent() local
59 int ok = TEST_ptr(nm) && test_namemap(nm); in test_namemap_independent()
61 ossl_namemap_free(nm); in test_namemap_independent()
69 return TEST_ptr(nm) in test_namemap_stored()
70 && test_namemap(nm); in test_namemap_stored()
83 if (!TEST_ptr(nm)) in test_digestbyname()
[all …]
/openssl/include/openssl/
H A Dobjects.h84 # define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm) \ argument
85 static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \
86 static int nm##_cmp(type1 const *, type2 const *); \
91 # define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \ argument
92 type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)
121 # define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm) \ argument
126 return nm##_cmp(a,b); \
131 nm##_cmp_BSEARCH_CMP_FN); \
135 # define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm) \ argument
140 return nm##_cmp(a,b); \
[all …]
/openssl/crypto/evp/
H A Dlegacy_meth.h10 #define IMPLEMENT_LEGACY_EVP_MD_METH(nm, fn) \ argument
11 static int nm##_init(EVP_MD_CTX *ctx) \
15 static int nm##_update(EVP_MD_CTX *ctx, const void *data, size_t count) \
19 static int nm##_final(EVP_MD_CTX *ctx, unsigned char *md) \
24 #define IMPLEMENT_LEGACY_EVP_MD_METH_LC(nm, fn) \ argument
25 static int nm##_init(EVP_MD_CTX *ctx) \
29 static int nm##_update(EVP_MD_CTX *ctx, const void *data, size_t count) \
33 static int nm##_final(EVP_MD_CTX *ctx, unsigned char *md) \
H A Dnames.c203 static void do_all_cipher_fn(const OBJ_NAME *nm, void *arg) in do_all_cipher_fn() argument
206 if (nm->alias) in do_all_cipher_fn()
207 dc->fn(NULL, nm->name, nm->data, dc->arg); in do_all_cipher_fn()
209 dc->fn((const EVP_CIPHER *)nm->data, nm->name, NULL, dc->arg); in do_all_cipher_fn()
246 static void do_all_md_fn(const OBJ_NAME *nm, void *arg) in do_all_md_fn() argument
249 if (nm->alias) in do_all_md_fn()
250 dc->fn(NULL, nm->name, nm->data, dc->arg); in do_all_md_fn()
252 dc->fn((const EVP_MD *)nm->data, nm->name, NULL, dc->arg); in do_all_md_fn()
H A Dlegacy_sha.c29 #define IMPLEMENT_LEGACY_EVP_MD_METH_SHA3(nm, fn, tag) \ argument
30 static int nm##_init(EVP_MD_CTX *ctx) \
34 static int nm##_update(EVP_MD_CTX *ctx, const void *data, size_t count) \
38 static int nm##_final(EVP_MD_CTX *ctx, unsigned char *md) \
43 #define IMPLEMENT_LEGACY_EVP_MD_METH_SHAKE(nm, fn, tag) \ argument
44 static int nm##_init(EVP_MD_CTX *ctx) \
/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha.c27 # define IMPLEMENT_CIPHER(nm, sub, kbits, blkbits, ivbits, flags) \ argument
28 const OSSL_DISPATCH ossl_##nm##kbits##sub##_functions[] = { \
397 # define IMPLEMENT_CIPHER(nm, sub, kbits, blkbits, ivbits, flags) \ argument
398 static OSSL_FUNC_cipher_newctx_fn nm##_##kbits##_##sub##_newctx; \
399 static void *nm##_##kbits##_##sub##_newctx(void *provctx) \
401 return nm##_##sub##_newctx(provctx, kbits, blkbits, ivbits, flags); \
403 static OSSL_FUNC_cipher_get_params_fn nm##_##kbits##_##sub##_get_params; \
404 static int nm##_##kbits##_##sub##_get_params(OSSL_PARAM params[]) \
409 const OSSL_DISPATCH ossl_##nm##kbits##sub##_functions[] = { \
410 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))nm##_##kbits##_##sub##_newctx },\
[all …]
/openssl/crypto/x509/
H A Dx_name.c156 } nm = { in x509_name_ex_d2i() local
177 if (!x509_name_ex_new(&nm.a, NULL)) in x509_name_ex_d2i()
180 if (!BUF_MEM_grow(nm.x->bytes, p - q)) in x509_name_ex_d2i()
182 memcpy(nm.x->bytes->data, q, p - q); in x509_name_ex_d2i()
195 ret = x509_name_canon(nm.x); in x509_name_ex_d2i()
200 nm.x->modified = 0; in x509_name_ex_d2i()
201 *val = nm.a; in x509_name_ex_d2i()
206 if (nm.x != NULL) in x509_name_ex_d2i()
207 X509_NAME_free(nm.x); in x509_name_ex_d2i()
550 if (i2d_X509_NAME(nm, NULL) <= 0) in X509_NAME_get0_der()
[all …]
H A Dv3_ncons.c39 static int nc_dn(const X509_NAME *sub, const X509_NAME *nm);
282 X509_NAME *nm; in NAME_CONSTRAINTS_check() local
284 nm = X509_get_subject_name(x); in NAME_CONSTRAINTS_check()
290 if (!add_lengths(&name_count, X509_NAME_entry_count(nm), in NAME_CONSTRAINTS_check()
298 if (X509_NAME_entry_count(nm) > 0) { in NAME_CONSTRAINTS_check()
301 gntmp.d.directoryName = nm; in NAME_CONSTRAINTS_check()
318 ne = X509_NAME_get_entry(nm, i); in NAME_CONSTRAINTS_check()
441 const X509_NAME *nm = X509_get_subject_name(x); in NAME_CONSTRAINTS_check_CN() local
461 ne = X509_NAME_get_entry(nm, i); in NAME_CONSTRAINTS_check_CN()
618 if (nm->modified && i2d_X509_NAME(nm, NULL) < 0) in nc_dn()
[all …]
H A Dv3_crld.c85 X509_NAME *nm; in set_dist_point_name() local
86 nm = X509_NAME_new(); in set_dist_point_name()
87 if (nm == NULL) in set_dist_point_name()
91 X509_NAME_free(nm); in set_dist_point_name()
95 ret = X509V3_NAME_from_section(nm, dnsect, MBSTRING_ASC); in set_dist_point_name()
97 rnm = nm->entries; in set_dist_point_name()
98 nm->entries = NULL; in set_dist_point_name()
99 X509_NAME_free(nm); in set_dist_point_name()
H A Dv3_san.c422 X509_NAME *nm; in copy_email() local
436 nm = ctx->subject_cert != NULL ? in copy_email()
441 while ((i = X509_NAME_get_index_by_NID(nm, in copy_email()
443 ne = X509_NAME_get_entry(nm, i); in copy_email()
446 X509_NAME_delete_entry(nm, i); in copy_email()
675 X509_NAME *nm; in do_dirname() local
677 if ((nm = X509_NAME_new()) == NULL) in do_dirname()
686 ret = X509V3_NAME_from_section(nm, sk, MBSTRING_ASC); in do_dirname()
689 gen->d.dirn = nm; in do_dirname()
693 X509_NAME_free(nm); in do_dirname()
H A Dx_crl.c407 static int crl_revoked_issuer_match(X509_CRL *crl, const X509_NAME *nm, in crl_revoked_issuer_match() argument
413 if (!nm) in crl_revoked_issuer_match()
415 if (!X509_NAME_cmp(nm, X509_CRL_get_issuer(crl))) in crl_revoked_issuer_match()
420 if (!nm) in crl_revoked_issuer_match()
421 nm = X509_CRL_get_issuer(crl); in crl_revoked_issuer_match()
427 if (!X509_NAME_cmp(nm, gen->d.directoryName)) in crl_revoked_issuer_match()
/openssl/crypto/pem/
H A Dpem_lib.c129 if (strcmp(nm, name) == 0) in check_pem()
182 if (strcmp(nm, PEM_STRING_X509_OLD) == 0 in check_pem()
191 if (strcmp(nm, PEM_STRING_X509) == 0 in check_pem()
200 if (strcmp(nm, PEM_STRING_X509) == 0 in check_pem()
209 if (strcmp(nm, PEM_STRING_X509) == 0 in check_pem()
213 if (strcmp(nm, PEM_STRING_PKCS7) == 0 in check_pem()
248 char *nm = NULL, *header = NULL; in pem_bytes_read_bio_flags() local
254 PEM_FREE(nm, flags, 0); in pem_bytes_read_bio_flags()
262 } while (!check_pem(nm, name)); in pem_bytes_read_bio_flags()
272 *pnm = nm; in pem_bytes_read_bio_flags()
[all …]
H A Dpem_pkey.c105 char *nm = NULL; in pem_read_bio_key_legacy() local
114 if (!PEM_bytes_read_bio_secmem(&data, &len, &nm, in pem_read_bio_key_legacy()
125 if (!PEM_bytes_read_bio(&data, &len, &nm, in pem_read_bio_key_legacy()
135 if (strcmp(nm, PEM_STRING_PKCS8INF) == 0) { in pem_read_bio_key_legacy()
146 } else if (strcmp(nm, PEM_STRING_PKCS8) == 0) { in pem_read_bio_key_legacy()
174 } else if ((slen = ossl_pem_check_suffix(nm, "PRIVATE KEY")) > 0) { in pem_read_bio_key_legacy()
176 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in pem_read_bio_key_legacy()
186 && (slen = ossl_pem_check_suffix(nm, "PARAMETERS")) > 0) { in pem_read_bio_key_legacy()
191 if (!EVP_PKEY_set_type_str(ret, nm, slen) in pem_read_bio_key_legacy()
209 OPENSSL_secure_free(nm); in pem_read_bio_key_legacy()
H A Dpem_all.c186 char *nm = NULL; in IMPLEMENT_PEM_write() local
192 if (!PEM_bytes_read_bio(&data, &len, &nm, PEM_STRING_DHPARAMS, bp, cb, u)) in IMPLEMENT_PEM_write()
196 if (strcmp(nm, PEM_STRING_DHXPARAMS) == 0) in IMPLEMENT_PEM_write()
203 OPENSSL_free(nm); in IMPLEMENT_PEM_write()
/openssl/crypto/conf/
H A Dconf_ssl.c153 const struct ssl_conf_name_st *nm; in conf_ssl_name_find() local
157 for (i = 0, nm = ssl_names; i < ssl_names_count; i++, nm++) { in conf_ssl_name_find()
158 if (strcmp(nm->name, name) == 0) { in conf_ssl_name_find()
/openssl/crypto/ocsp/
H A Docsp_vfy.c26 const X509_NAME *nm, STACK_OF(X509) *certs,
389 const X509_NAME *nm; in OCSP_request_verify() local
402 nm = gen->d.directoryName; in OCSP_request_verify()
403 ret = ocsp_req_find_signer(&signer, req, nm, certs, flags); in OCSP_request_verify()
422 const X509_NAME *nm, STACK_OF(X509) *certs, in ocsp_req_find_signer() argument
428 signer = X509_find_by_subject(req->optionalSignature->certs, nm); in ocsp_req_find_signer()
435 if ((signer = X509_find_by_subject(certs, nm)) != NULL) { in ocsp_req_find_signer()
/openssl/apps/
H A Dciphers.c265 const char *nm = SSL_CIPHER_standard_name(c); in ciphers_main() local
266 if (nm == NULL) in ciphers_main()
267 nm = "UNKNOWN"; in ciphers_main()
268 BIO_printf(bio_out, "%-45s - ", nm); in ciphers_main()
/openssl/ms/
H A Dcmp.pl49 $nm=$tot+$n1;
51 printf STDERR "diff at char $tot of $nm\n";
/openssl/doc/man3/
H A DX509_NAME_add_entry_by_txt.pod92 X509_NAME *nm;
94 nm = X509_NAME_new();
95 if (nm == NULL)
97 if (!X509_NAME_add_entry_by_txt(nm, "C", MBSTRING_ASC,
100 if (!X509_NAME_add_entry_by_txt(nm, "O", MBSTRING_ASC,
103 if (!X509_NAME_add_entry_by_txt(nm, "CN", MBSTRING_ASC,
H A DOSSL_CRMF_MSG_set1_regCtrl_regToken.pod37 int method, GENERAL_NAME *nm);
70 the I<method> and publication location, in the form of a GeneralName, I<nm>.
71 The publication location is optional, and therefore I<nm> may be NULL.
72 The function consumes the I<nm> pointer if present.
H A DX509_NAME_get_index_by_NID.pod95 for (i = 0; i < X509_NAME_entry_count(nm); i++) {
96 e = X509_NAME_get_entry(nm, i);
106 lastpos = X509_NAME_get_index_by_NID(nm, NID_commonName, lastpos);
109 e = X509_NAME_get_entry(nm, lastpos);
/openssl/crypto/perlasm/
H A Dx86masm.pl200 { my $nm=shift;
202 push(@out,".SAFESEH ".&::LABEL($nm,$nmdecor.$nm)."\n");
H A Dx86nasm.pl180 { my $nm=shift;
182 push(@out,"safeseh ".&::LABEL($nm,$nmdecor.$nm)."\n");
/openssl/crypto/asn1/
H A Da_strex.c562 int X509_NAME_print_ex(BIO *out, const X509_NAME *nm, int indent, in X509_NAME_print_ex() argument
566 return X509_NAME_print(out, nm, indent); in X509_NAME_print_ex()
567 return do_name_ex(send_bio_chars, out, nm, indent, flags); in X509_NAME_print_ex()
571 int X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm, int indent, in X509_NAME_print_ex_fp() argument
580 ret = X509_NAME_print(btmp, nm, indent); in X509_NAME_print_ex_fp()
584 return do_name_ex(send_fp_chars, fp, nm, indent, flags); in X509_NAME_print_ex_fp()
/openssl/crypto/cmp/
H A Dcmp_hdr.c97 int ossl_cmp_hdr_set1_sender(OSSL_CMP_PKIHEADER *hdr, const X509_NAME *nm) in ossl_cmp_hdr_set1_sender() argument
101 return GENERAL_NAME_set1_X509_NAME(&hdr->sender, nm); in ossl_cmp_hdr_set1_sender()
104 int ossl_cmp_hdr_set1_recipient(OSSL_CMP_PKIHEADER *hdr, const X509_NAME *nm) in ossl_cmp_hdr_set1_recipient() argument
108 return GENERAL_NAME_set1_X509_NAME(&hdr->recipient, nm); in ossl_cmp_hdr_set1_recipient()

Completed in 54 milliseconds

123