Skip to content

Commit

Permalink
fixup! pk11_uri: pem encoder and decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Wernli committed Feb 19, 2024
1 parent 236bcbd commit c487a49
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/store.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,19 +594,20 @@ int p11prov_store_direct_fetch(void *provctx, const char *uri,
OSSL_CALLBACK *object_cb, void *object_cbarg,
OSSL_PASSPHRASE_CALLBACK *pw_cb, void *pw_cbarg)
{
int ret = RET_OSSL_OK;
struct p11prov_store_ctx *ctx = NULL;
ctx = p11prov_store_open(provctx, uri);
if (!ctx) {
return RET_OSSL_ERR;
}

int ret = RET_OSSL_OK;
while (ret == RET_OSSL_OK) {
ret = p11prov_store_load(ctx, object_cb, object_cbarg, pw_cb, pw_cbarg);
}
do {
ret &=
p11prov_store_load(ctx, object_cb, object_cbarg, pw_cb, pw_cbarg);
} while (!p11prov_store_eof(ctx));

p11prov_store_ctx_free(ctx);
return RET_OSSL_OK;
return ret;
}

const OSSL_DISPATCH p11prov_store_functions[] = {
Expand Down

0 comments on commit c487a49

Please sign in to comment.