Skip to content

Commit

Permalink
fixup! EVP: add missing *_get/settable_params() error queue entries a…
Browse files Browse the repository at this point in the history
…nd error result documentation
  • Loading branch information
DDvO committed Dec 4, 2023
1 parent ab56952 commit 88865c2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crypto/encode_decode/decoder_meth.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ void *ossl_decoder_from_algorithm(int id, const OSSL_ALGORITHM *algodef,
if ((decoder = ossl_decoder_new()) == NULL)
return NULL;
decoder->base.id = id;
if ((decoder->base.name = ossl_algorithm_get1_first_name(algodef)) == NULL) {
if ((decoder->base.name =
ossl_algorithm_get1_first_name(algodef)) == NULL) {
OSSL_DECODER_free(decoder);
return NULL;
}
Expand Down Expand Up @@ -284,7 +285,6 @@ void *ossl_decoder_from_algorithm(int id, const OSSL_ALGORITHM *algodef,
return decoder;
}


/*
* The core fetching functionality passes the names of the implementation.
* This function is responsible to getting an identity number for them,
Expand Down Expand Up @@ -521,7 +521,8 @@ static int resolve_name(OSSL_DECODER *decoder, const char *name)
return ossl_namemap_name2num(namemap, name);
}

int ossl_decoder_fast_is_a(OSSL_DECODER *decoder, const char *name, int *id_cache)
int ossl_decoder_fast_is_a(OSSL_DECODER *decoder, const char *name,
int *id_cache)
{
int id = *id_cache;

Expand Down Expand Up @@ -589,7 +590,7 @@ OSSL_DECODER_gettable_params(OSSL_DECODER *decoder)
return decoder->gettable_params(provctx);
}
ERR_raise(ERR_LIB_OSSL_DECODER, OSSL_DECODER_R_MISSING_GETTABLE_PARAMS);
return NULL;
return NULL;
}

int OSSL_DECODER_get_params(OSSL_DECODER *decoder, OSSL_PARAM params[])
Expand Down

0 comments on commit 88865c2

Please sign in to comment.