VirtualBox

Ignore:
Timestamp:
Jun 8, 2022 7:43:44 AM (3 years ago)
Author:
vboxsync
Message:

libs/openssl: Switched to v3.0.3, bugref:10128

Location:
trunk/src/libs/openssl-3.0.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/openssl-3.0.3

    • Property svn:mergeinfo
      •  

        old new  
        1414/vendor/openssl/3.0.1:150323-150324
        1515/vendor/openssl/3.0.2:150728-150729
        16 /vendor/openssl/current:147554-150727
         16/vendor/openssl/3.0.3:151497-151729
         17/vendor/openssl/current:147554-151496
  • trunk/src/libs/openssl-3.0.3/providers/fips/fipsprov.c

    r94320 r95219  
    11/*
    2  * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    2323#include "prov/seeding.h"
    2424#include "self_test.h"
     25#include "internal/core.h"
    2526
    2627static const char FIPS_DEFAULT_PROPERTIES[] = "provider=fips,fips=yes";
     
    3536static OSSL_FUNC_provider_get_params_fn fips_get_params;
    3637static OSSL_FUNC_provider_query_operation_fn fips_query;
     38
     39/* Locale object accessor functions */
     40#ifdef OPENSSL_SYS_MACOSX
     41# include <xlocale.h>
     42#else
     43# include <locale.h>
     44#endif
     45
     46#if defined OPENSSL_SYS_WINDOWS
     47# define locale_t _locale_t
     48# define freelocale _free_locale
     49#endif
     50static locale_t loc;
     51
     52static int fips_init_casecmp(void);
     53static void fips_deinit_casecmp(void);
    3754
    3855#define ALGC(NAMES, FUNC, CHECK) { { NAMES, FIPS_DEFAULT_PROPERTIES, FUNC }, CHECK }
     
    487504}
    488505
     506void *ossl_c_locale() {
     507    return (void *)loc;
     508}
     509
     510static int fips_init_casecmp(void) {
     511# ifdef OPENSSL_SYS_WINDOWS
     512    loc = _create_locale(LC_COLLATE, "C");
     513# else
     514    loc = newlocale(LC_COLLATE_MASK, "C", (locale_t) 0);
     515# endif
     516    return (loc == (locale_t) 0) ? 0 : 1;
     517}
     518
     519static void fips_deinit_casecmp(void) {
     520    freelocale(loc);
     521}
     522
    489523static void fips_teardown(void *provctx)
    490524{
     
    499533     * so no need to destroy it here.
    500534     */
     535    fips_deinit_casecmp();
    501536    ossl_prov_ctx_free(provctx);
    502537}
     
    548583    memset(&selftest_params, 0, sizeof(selftest_params));
    549584
     585    if (!fips_init_casecmp())
     586        return 0;
    550587    if (!ossl_prov_seeding_from_dispatch(in))
    551588        return 0;
  • trunk/src/libs/openssl-3.0.3/providers/fips/self_test.c

    r94320 r95219  
    11/*
    2  * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    104104    return TRUE;
    105105}
     106
     107#elif defined(__GNUC__)
     108# undef DEP_INIT_ATTRIBUTE
     109# undef DEP_FINI_ATTRIBUTE
     110# define DEP_INIT_ATTRIBUTE static __attribute__((constructor))
     111# define DEP_FINI_ATTRIBUTE static __attribute__((destructor))
     112
    106113#elif defined(__sun)
    107114# pragma init(init)
     
    125132# pragma init "init"
    126133# pragma fini "cleanup"
    127 
    128 #elif defined(__GNUC__)
    129 # undef DEP_INIT_ATTRIBUTE
    130 # undef DEP_FINI_ATTRIBUTE
    131 # define DEP_INIT_ATTRIBUTE static __attribute__((constructor))
    132 # define DEP_FINI_ATTRIBUTE static __attribute__((destructor))
    133134
    134135#elif defined(__TANDEM)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette