Lines Matching refs:search
325 int OSSL_STORE_find(OSSL_STORE_CTX *ctx, const OSSL_STORE_SEARCH *search) in OSSL_STORE_find() argument
333 if (search == NULL) { in OSSL_STORE_find()
359 switch (search->search_type) { in OSSL_STORE_find()
361 if ((name_der_sz = i2d_X509_NAME(search->name, in OSSL_STORE_find()
369 if ((name_der_sz = i2d_X509_NAME(search->name, in OSSL_STORE_find()
371 && (number = ASN1_INTEGER_to_BN(search->serial, NULL)) != NULL in OSSL_STORE_find()
381 EVP_MD_get0_name(search->digest), in OSSL_STORE_find()
385 search->string, in OSSL_STORE_find()
386 search->stringlength)) in OSSL_STORE_find()
391 (char *)search->string, in OSSL_STORE_find()
392 search->stringlength)) in OSSL_STORE_find()
412 ret = ctx->loader->find(ctx->loader_ctx, search); in OSSL_STORE_find()
907 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_name() local
909 if (search == NULL) in OSSL_STORE_SEARCH_by_name()
912 search->search_type = OSSL_STORE_SEARCH_BY_NAME; in OSSL_STORE_SEARCH_by_name()
913 search->name = name; in OSSL_STORE_SEARCH_by_name()
914 return search; in OSSL_STORE_SEARCH_by_name()
920 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_issuer_serial() local
922 if (search == NULL) in OSSL_STORE_SEARCH_by_issuer_serial()
925 search->search_type = OSSL_STORE_SEARCH_BY_ISSUER_SERIAL; in OSSL_STORE_SEARCH_by_issuer_serial()
926 search->name = name; in OSSL_STORE_SEARCH_by_issuer_serial()
927 search->serial = serial; in OSSL_STORE_SEARCH_by_issuer_serial()
928 return search; in OSSL_STORE_SEARCH_by_issuer_serial()
935 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_key_fingerprint() local
938 if (search == NULL) in OSSL_STORE_SEARCH_by_key_fingerprint()
943 OPENSSL_free(search); in OSSL_STORE_SEARCH_by_key_fingerprint()
952 OPENSSL_free(search); in OSSL_STORE_SEARCH_by_key_fingerprint()
956 search->search_type = OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT; in OSSL_STORE_SEARCH_by_key_fingerprint()
957 search->digest = digest; in OSSL_STORE_SEARCH_by_key_fingerprint()
958 search->string = bytes; in OSSL_STORE_SEARCH_by_key_fingerprint()
959 search->stringlength = len; in OSSL_STORE_SEARCH_by_key_fingerprint()
960 return search; in OSSL_STORE_SEARCH_by_key_fingerprint()
965 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_alias() local
967 if (search == NULL) in OSSL_STORE_SEARCH_by_alias()
970 search->search_type = OSSL_STORE_SEARCH_BY_ALIAS; in OSSL_STORE_SEARCH_by_alias()
971 search->string = (const unsigned char *)alias; in OSSL_STORE_SEARCH_by_alias()
972 search->stringlength = strlen(alias); in OSSL_STORE_SEARCH_by_alias()
973 return search; in OSSL_STORE_SEARCH_by_alias()
977 void OSSL_STORE_SEARCH_free(OSSL_STORE_SEARCH *search) in OSSL_STORE_SEARCH_free() argument
979 OPENSSL_free(search); in OSSL_STORE_SEARCH_free()