aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/t1_lib.inc.in
blob: bde00d638e76623aa6a099be94590d858694d9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * Copyright 2026 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
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

{-
use OpenSSL::paramnames qw(produce_param_decoder);

sub produce_ssl_param_decoder {
    my $decoder = produce_param_decoder(@_);

    # Remove the unavailable header inclusion.
    $decoder =~ s|#include "prov/proverr.h"||;
    return $decoder;
}
-}

/*
 * There is no need to produce a list of gettables/settables because libssl
 * doesn't support these query functions.
 */
#define tls_group_params_list
#define tls_sigalg_params_list

{- produce_ssl_param_decoder('tls_group_params',
                         (['OSSL_CAPABILITY_TLS_GROUP_NAME',          'name',     'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_NAME_INTERNAL', 'internal', 'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_ID',            'id',       'uint',        'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_ALG',           'alg',      'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_SECURITY_BITS', 'secbits',  'uint',        'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_IS_KEM',        'is_kem',   'uint',        'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_MIN_TLS',       'min_tls',  'int',         'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_MAX_TLS',       'max_tls',  'int',         'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_MIN_DTLS',      'min_dtls', 'int',         'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_GROUP_MAX_DTLS',      'max_dtls', 'int',         'duplicate: first'],
                         )); -}

{- produce_ssl_param_decoder('tls_sigalg_params',
                         (['OSSL_CAPABILITY_TLS_SIGALG_NAME',        'name',        'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_IANA_NAME',   'iana_name',   'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_CODE_POINT',  'code_point',  'uint',        'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_SECURITY_BITS', 'secbits',   'uint',        'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_OID',         'oid',         'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_SIG_NAME',    'sig_name',    'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_SIG_OID',     'sig_oid',     'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_HASH_NAME',   'hash_name',   'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_HASH_OID',    'hash_oid',    'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE',     'keytype',     'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_KEYTYPE_OID', 'keytype_oid', 'utf8_string', 'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_MIN_DTLS',    'min_dtls',    'int',         'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_MAX_DTLS',    'max_dtls',    'int',         'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_MIN_TLS',     'min_tls',     'int',         'duplicate: first'],
                          ['OSSL_CAPABILITY_TLS_SIGALG_MAX_TLS',     'max_tls',     'int',         'duplicate: first'],
                         )); -}