• Bug#1109207: bookworm-pu: package openssl/3.0.17-1~deb12u1 (3/7)

    From Sebastian Andrzej Siewior@21:1/5 to All on Sun Jul 13 15:00:01 2025
    [continued from previous message]

    - return general_allocate_string(ui, text_copy, 1, UIT_ERROR, 0, NULL,
    +
    + ret = general_allocate_string(ui, text_copy, 1, UIT_ERROR, 0, NULL,
    0, 0, NULL);
    + if (ret <= 0)
    + OPENSSL_free(text_copy);
    + return ret;
    }

    char *UI_construct_prompt(UI *ui, const char *phrase_desc,
    diff -Nru -w openssl-3.0.16/crypto/x509/by_store.c openssl-3.0.17/crypto/x509/by_store.c
    --- openssl-3.0.16/crypto/x509/by_store.c 2025-02-11 15:47:41.000000000 +0100
    +++ openssl-3.0.17/crypto/x509/by_store.c 2025-07-01 14:11:11.000000000 +0200
    @@ -1,5 +1,5 @@
    /*
    - * Copyright 2018-2022 The OpenSSL Project Authors. All Rights Reserved.
    + * Copyright 2018-2025 The OpenSSL Project Authors. All Rights Reserved.
    *
    * Licensed under the Apache License 2.0 (the "License"). You may not use
    * this file except in compliance with the License. You can obtain a copy
    @@ -7,23 +7,34 @@
    * https://www.openssl.org/source/license.html
    */

    +#include <openssl/safestack.h>
    #include <openssl/store.h>
    #include "internal/cryptlib.h"
    #include "crypto/x509.h"
    #include "x509_local.h"

    +typedef struct cached_store_st {
    + char *uri;
    + OSSL_LIB_CTX *libctx;
    + char *propq;
    + OSSL_STORE_CTX *ctx;
    +} CACHED_STORE;
    +
    +DEFINE_STACK_OF(CACHED_STORE)
    +
    /* Generic object loader, given expected type and criterion */
    -static int cache_objects(X509_LOOKUP *lctx, const char *uri,