Lines Matching refs:search
150 int OSSL_STORE_find(OSSL_STORE_CTX *ctx, OSSL_STORE_SEARCH *search) in OSSL_STORE_find() argument
163 return ctx->loader->find(ctx->loader_ctx, search); in OSSL_STORE_find()
488 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_name() local
490 if (search == NULL) { in OSSL_STORE_SEARCH_by_name()
496 search->search_type = OSSL_STORE_SEARCH_BY_NAME; in OSSL_STORE_SEARCH_by_name()
497 search->name = name; in OSSL_STORE_SEARCH_by_name()
498 return search; in OSSL_STORE_SEARCH_by_name()
504 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_issuer_serial() local
506 if (search == NULL) { in OSSL_STORE_SEARCH_by_issuer_serial()
512 search->search_type = OSSL_STORE_SEARCH_BY_ISSUER_SERIAL; in OSSL_STORE_SEARCH_by_issuer_serial()
513 search->name = name; in OSSL_STORE_SEARCH_by_issuer_serial()
514 search->serial = serial; in OSSL_STORE_SEARCH_by_issuer_serial()
515 return search; in OSSL_STORE_SEARCH_by_issuer_serial()
522 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_key_fingerprint() local
524 if (search == NULL) { in OSSL_STORE_SEARCH_by_key_fingerprint()
541 search->search_type = OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT; in OSSL_STORE_SEARCH_by_key_fingerprint()
542 search->digest = digest; in OSSL_STORE_SEARCH_by_key_fingerprint()
543 search->string = bytes; in OSSL_STORE_SEARCH_by_key_fingerprint()
544 search->stringlength = len; in OSSL_STORE_SEARCH_by_key_fingerprint()
545 return search; in OSSL_STORE_SEARCH_by_key_fingerprint()
550 OSSL_STORE_SEARCH *search = OPENSSL_zalloc(sizeof(*search)); in OSSL_STORE_SEARCH_by_alias() local
552 if (search == NULL) { in OSSL_STORE_SEARCH_by_alias()
558 search->search_type = OSSL_STORE_SEARCH_BY_ALIAS; in OSSL_STORE_SEARCH_by_alias()
559 search->string = (const unsigned char *)alias; in OSSL_STORE_SEARCH_by_alias()
560 search->stringlength = strlen(alias); in OSSL_STORE_SEARCH_by_alias()
561 return search; in OSSL_STORE_SEARCH_by_alias()
565 void OSSL_STORE_SEARCH_free(OSSL_STORE_SEARCH *search) in OSSL_STORE_SEARCH_free() argument
567 OPENSSL_free(search); in OSSL_STORE_SEARCH_free()