VirtualBox

Ignore:
Timestamp:
Apr 22, 2025 1:23:25 PM (4 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168586
Message:

openssl-3.4.1: Applied our changes, regenerated files, added missing files and functions. This time with a three way merge. ​bugref:10890

Location:
trunk/src/libs/openssl-3.4.1
Files:
1 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/openssl-3.4.1/gen-includes/openssl/x509.h

    r108206 r109052  
    33 * Generated by Makefile from x509.h.in
    44 *
    5  * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
     5 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
    66 * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
    77 *
     
    166166# define X509_FILETYPE_DEFAULT   3
    167167
    168 # define X509v3_KU_DIGITAL_SIGNATURE     0x0080
    169 # define X509v3_KU_NON_REPUDIATION       0x0040
    170 # define X509v3_KU_KEY_ENCIPHERMENT      0x0020
    171 # define X509v3_KU_DATA_ENCIPHERMENT     0x0010
    172 # define X509v3_KU_KEY_AGREEMENT         0x0008
    173 # define X509v3_KU_KEY_CERT_SIGN         0x0004
    174 # define X509v3_KU_CRL_SIGN              0x0002
    175 # define X509v3_KU_ENCIPHER_ONLY         0x0001
    176 # define X509v3_KU_DECIPHER_ONLY         0x8000
    177 # define X509v3_KU_UNDEF                 0xffff
     168/*-
     169 * <https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3>:
     170 * The KeyUsage BITSTRING is treated as a little-endian integer, hence bit `0`
     171 * is 0x80, while bit `7` is 0x01 (the LSB of the integer value), bit `8` is
     172 * then the MSB of the second octet, or 0x8000.
     173 */
     174# define X509v3_KU_DIGITAL_SIGNATURE     0x0080     /* (0) */
     175# define X509v3_KU_NON_REPUDIATION       0x0040     /* (1) */
     176# define X509v3_KU_KEY_ENCIPHERMENT      0x0020     /* (2) */
     177# define X509v3_KU_DATA_ENCIPHERMENT     0x0010     /* (3) */
     178# define X509v3_KU_KEY_AGREEMENT         0x0008     /* (4) */
     179# define X509v3_KU_KEY_CERT_SIGN         0x0004     /* (5) */
     180# define X509v3_KU_CRL_SIGN              0x0002     /* (6) */
     181# define X509v3_KU_ENCIPHER_ONLY         0x0001     /* (7) */
     182# define X509v3_KU_DECIPHER_ONLY         0x8000     /* (8) */
     183# ifndef OPENSSL_NO_DEPRECATED_3_4
     184#  define X509v3_KU_UNDEF                0xffff     /* vestigial, not used */
     185# endif
    178186
    179187struct X509_algor_st {
     
    466474} PBKDF2PARAM;
    467475
    468 #ifndef OPENSSL_NO_SCRYPT
     476typedef struct {
     477    X509_ALGOR *keyDerivationFunc;
     478    X509_ALGOR *messageAuthScheme;
     479} PBMAC1PARAM;
     480
     481# ifndef OPENSSL_NO_SCRYPT
    469482typedef struct SCRYPT_PARAMS_st {
    470483    ASN1_OCTET_STRING *salt;
     
    474487    ASN1_INTEGER *keyLength;
    475488} SCRYPT_PARAMS;
    476 #endif
     489# endif
    477490
    478491#ifdef  __cplusplus
     
    897910int *X509_REQ_get_extension_nids(void);
    898911void X509_REQ_set_extension_nids(int *nids);
    899 STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req);
     912STACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(OSSL_FUTURE_CONST X509_REQ *req);
    900913int X509_REQ_add_extensions_nid(X509_REQ *req,
    901914                                const STACK_OF(X509_EXTENSION) *exts, int nid);
     
    10861099STACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x,
    10871100                                         X509_EXTENSION *ex, int loc);
     1101STACK_OF(X509_EXTENSION) *X509v3_add_extensions(STACK_OF(X509_EXTENSION) **target,
     1102                                                const STACK_OF(X509_EXTENSION) *exts);
    10881103
    10891104int X509_get_ext_count(const X509 *x);
     
    12071222DECLARE_ASN1_FUNCTIONS(PBE2PARAM)
    12081223DECLARE_ASN1_FUNCTIONS(PBKDF2PARAM)
    1209 #ifndef OPENSSL_NO_SCRYPT
     1224DECLARE_ASN1_FUNCTIONS(PBMAC1PARAM)
     1225# ifndef OPENSSL_NO_SCRYPT
    12101226DECLARE_ASN1_FUNCTIONS(SCRYPT_PARAMS)
    1211 #endif
     1227# endif
    12121228
    12131229int PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,
     
    12461262                                OSSL_LIB_CTX *libctx);
    12471263
     1264PBKDF2PARAM *PBMAC1_get1_pbkdf2_param(const X509_ALGOR *macalg);
    12481265/* PKCS#8 utilities */
    12491266
Note: See TracChangeset for help on using the changeset viewer.

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