• Bug#1108958: unblock: openssl (5/16)

    From Sebastian Andrzej Siewior@21:1/5 to Paul Gevers on Sat Jul 12 19:20:02 2025
    [continued from previous message]

    diff -Nru -w openssl-3.5.0/crypto/evp/signature.c openssl-3.5.1/crypto/evp/signature.c
    --- openssl-3.5.0/crypto/evp/signature.c 2025-04-08 15:09:06.000000000 +0200
    +++ openssl-3.5.1/crypto/evp/signature.c 2025-07-01 13:52:08.000000000 +0200
    @@ -55,6 +55,7 @@
    {
    const OSSL_DISPATCH *fns = algodef->implementation;
    EVP_SIGNATURE *signature = NULL;
    + const char *desc;
    /* Counts newctx / freectx */
    int ctxfncnt = 0;
    /* Counts all init functions */
    @@ -72,6 +73,7 @@
    if ((signature->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL)
    goto err;
    signature->description = algodef->algorithm_description;
    + desc = signature->description != NULL ? signature->description : "";

    for (; fns->function_id != 0; fns++) {
    switch (fns->function_id) {
    @@ -290,23 +292,30 @@
    */
    valid = 1;
    /* Start with the ones where counters say enough */
    - if (ctxfncnt != 2)
    - /* newctx or freectx missing */
    + if (ctxfncnt != 2) {
    + ERR_raise_data(ERR_LIB_EVP, EVP_R_INVALID_PROVIDER_FUNCTIONS,
    +