1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved 4e1051a39Sopenharmony_ci * Copyright 2005 Nokia. All rights reserved. 5e1051a39Sopenharmony_ci * 6e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 7e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 8e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 9e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 10e1051a39Sopenharmony_ci */ 11e1051a39Sopenharmony_ci 12e1051a39Sopenharmony_ci#ifndef OPENSSL_TLS1_H 13e1051a39Sopenharmony_ci# define OPENSSL_TLS1_H 14e1051a39Sopenharmony_ci# pragma once 15e1051a39Sopenharmony_ci 16e1051a39Sopenharmony_ci# include <openssl/macros.h> 17e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_DEPRECATED_3_0 18e1051a39Sopenharmony_ci# define HEADER_TLS1_H 19e1051a39Sopenharmony_ci# endif 20e1051a39Sopenharmony_ci 21e1051a39Sopenharmony_ci# include <openssl/buffer.h> 22e1051a39Sopenharmony_ci# include <openssl/x509.h> 23e1051a39Sopenharmony_ci# include <openssl/prov_ssl.h> 24e1051a39Sopenharmony_ci 25e1051a39Sopenharmony_ci#ifdef __cplusplus 26e1051a39Sopenharmony_ciextern "C" { 27e1051a39Sopenharmony_ci#endif 28e1051a39Sopenharmony_ci 29e1051a39Sopenharmony_ci/* Default security level if not overridden at config time */ 30e1051a39Sopenharmony_ci# ifndef OPENSSL_TLS_SECURITY_LEVEL 31e1051a39Sopenharmony_ci# define OPENSSL_TLS_SECURITY_LEVEL 1 32e1051a39Sopenharmony_ci# endif 33e1051a39Sopenharmony_ci 34e1051a39Sopenharmony_ci/* TLS*_VERSION constants are defined in prov_ssl.h */ 35e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_DEPRECATED_3_0 36e1051a39Sopenharmony_ci# define TLS_MAX_VERSION TLS1_3_VERSION 37e1051a39Sopenharmony_ci# endif 38e1051a39Sopenharmony_ci 39e1051a39Sopenharmony_ci/* Special value for method supporting multiple versions */ 40e1051a39Sopenharmony_ci# define TLS_ANY_VERSION 0x10000 41e1051a39Sopenharmony_ci 42e1051a39Sopenharmony_ci# define TLS1_VERSION_MAJOR 0x03 43e1051a39Sopenharmony_ci# define TLS1_VERSION_MINOR 0x01 44e1051a39Sopenharmony_ci 45e1051a39Sopenharmony_ci# define TLS1_1_VERSION_MAJOR 0x03 46e1051a39Sopenharmony_ci# define TLS1_1_VERSION_MINOR 0x02 47e1051a39Sopenharmony_ci 48e1051a39Sopenharmony_ci# define TLS1_2_VERSION_MAJOR 0x03 49e1051a39Sopenharmony_ci# define TLS1_2_VERSION_MINOR 0x03 50e1051a39Sopenharmony_ci 51e1051a39Sopenharmony_ci# define TLS1_get_version(s) \ 52e1051a39Sopenharmony_ci ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0) 53e1051a39Sopenharmony_ci 54e1051a39Sopenharmony_ci# define TLS1_get_client_version(s) \ 55e1051a39Sopenharmony_ci ((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0) 56e1051a39Sopenharmony_ci 57e1051a39Sopenharmony_ci# define TLS1_AD_DECRYPTION_FAILED 21 58e1051a39Sopenharmony_ci# define TLS1_AD_RECORD_OVERFLOW 22 59e1051a39Sopenharmony_ci# define TLS1_AD_UNKNOWN_CA 48/* fatal */ 60e1051a39Sopenharmony_ci# define TLS1_AD_ACCESS_DENIED 49/* fatal */ 61e1051a39Sopenharmony_ci# define TLS1_AD_DECODE_ERROR 50/* fatal */ 62e1051a39Sopenharmony_ci# define TLS1_AD_DECRYPT_ERROR 51 63e1051a39Sopenharmony_ci# define TLS1_AD_EXPORT_RESTRICTION 60/* fatal */ 64e1051a39Sopenharmony_ci# define TLS1_AD_PROTOCOL_VERSION 70/* fatal */ 65e1051a39Sopenharmony_ci# define TLS1_AD_INSUFFICIENT_SECURITY 71/* fatal */ 66e1051a39Sopenharmony_ci# define TLS1_AD_INTERNAL_ERROR 80/* fatal */ 67e1051a39Sopenharmony_ci# define TLS1_AD_INAPPROPRIATE_FALLBACK 86/* fatal */ 68e1051a39Sopenharmony_ci# define TLS1_AD_USER_CANCELLED 90 69e1051a39Sopenharmony_ci# define TLS1_AD_NO_RENEGOTIATION 100 70e1051a39Sopenharmony_ci/* TLSv1.3 alerts */ 71e1051a39Sopenharmony_ci# define TLS13_AD_MISSING_EXTENSION 109 /* fatal */ 72e1051a39Sopenharmony_ci# define TLS13_AD_CERTIFICATE_REQUIRED 116 /* fatal */ 73e1051a39Sopenharmony_ci/* codes 110-114 are from RFC3546 */ 74e1051a39Sopenharmony_ci# define TLS1_AD_UNSUPPORTED_EXTENSION 110 75e1051a39Sopenharmony_ci# define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111 76e1051a39Sopenharmony_ci# define TLS1_AD_UNRECOGNIZED_NAME 112 77e1051a39Sopenharmony_ci# define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113 78e1051a39Sopenharmony_ci# define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114 79e1051a39Sopenharmony_ci# define TLS1_AD_UNKNOWN_PSK_IDENTITY 115/* fatal */ 80e1051a39Sopenharmony_ci# define TLS1_AD_NO_APPLICATION_PROTOCOL 120 /* fatal */ 81e1051a39Sopenharmony_ci 82e1051a39Sopenharmony_ci/* ExtensionType values from RFC3546 / RFC4366 / RFC6066 */ 83e1051a39Sopenharmony_ci# define TLSEXT_TYPE_server_name 0 84e1051a39Sopenharmony_ci# define TLSEXT_TYPE_max_fragment_length 1 85e1051a39Sopenharmony_ci# define TLSEXT_TYPE_client_certificate_url 2 86e1051a39Sopenharmony_ci# define TLSEXT_TYPE_trusted_ca_keys 3 87e1051a39Sopenharmony_ci# define TLSEXT_TYPE_truncated_hmac 4 88e1051a39Sopenharmony_ci# define TLSEXT_TYPE_status_request 5 89e1051a39Sopenharmony_ci/* ExtensionType values from RFC4681 */ 90e1051a39Sopenharmony_ci# define TLSEXT_TYPE_user_mapping 6 91e1051a39Sopenharmony_ci/* ExtensionType values from RFC5878 */ 92e1051a39Sopenharmony_ci# define TLSEXT_TYPE_client_authz 7 93e1051a39Sopenharmony_ci# define TLSEXT_TYPE_server_authz 8 94e1051a39Sopenharmony_ci/* ExtensionType values from RFC6091 */ 95e1051a39Sopenharmony_ci# define TLSEXT_TYPE_cert_type 9 96e1051a39Sopenharmony_ci 97e1051a39Sopenharmony_ci/* ExtensionType values from RFC4492 */ 98e1051a39Sopenharmony_ci/* 99e1051a39Sopenharmony_ci * Prior to TLSv1.3 the supported_groups extension was known as 100e1051a39Sopenharmony_ci * elliptic_curves 101e1051a39Sopenharmony_ci */ 102e1051a39Sopenharmony_ci# define TLSEXT_TYPE_supported_groups 10 103e1051a39Sopenharmony_ci# define TLSEXT_TYPE_elliptic_curves TLSEXT_TYPE_supported_groups 104e1051a39Sopenharmony_ci# define TLSEXT_TYPE_ec_point_formats 11 105e1051a39Sopenharmony_ci 106e1051a39Sopenharmony_ci 107e1051a39Sopenharmony_ci/* ExtensionType value from RFC5054 */ 108e1051a39Sopenharmony_ci# define TLSEXT_TYPE_srp 12 109e1051a39Sopenharmony_ci 110e1051a39Sopenharmony_ci/* ExtensionType values from RFC5246 */ 111e1051a39Sopenharmony_ci# define TLSEXT_TYPE_signature_algorithms 13 112e1051a39Sopenharmony_ci 113e1051a39Sopenharmony_ci/* ExtensionType value from RFC5764 */ 114e1051a39Sopenharmony_ci# define TLSEXT_TYPE_use_srtp 14 115e1051a39Sopenharmony_ci 116e1051a39Sopenharmony_ci/* ExtensionType value from RFC7301 */ 117e1051a39Sopenharmony_ci# define TLSEXT_TYPE_application_layer_protocol_negotiation 16 118e1051a39Sopenharmony_ci 119e1051a39Sopenharmony_ci/* 120e1051a39Sopenharmony_ci * Extension type for Certificate Transparency 121e1051a39Sopenharmony_ci * https://tools.ietf.org/html/rfc6962#section-3.3.1 122e1051a39Sopenharmony_ci */ 123e1051a39Sopenharmony_ci# define TLSEXT_TYPE_signed_certificate_timestamp 18 124e1051a39Sopenharmony_ci 125e1051a39Sopenharmony_ci/* 126e1051a39Sopenharmony_ci * ExtensionType value for TLS padding extension. 127e1051a39Sopenharmony_ci * http://tools.ietf.org/html/draft-agl-tls-padding 128e1051a39Sopenharmony_ci */ 129e1051a39Sopenharmony_ci# define TLSEXT_TYPE_padding 21 130e1051a39Sopenharmony_ci 131e1051a39Sopenharmony_ci/* ExtensionType value from RFC7366 */ 132e1051a39Sopenharmony_ci# define TLSEXT_TYPE_encrypt_then_mac 22 133e1051a39Sopenharmony_ci 134e1051a39Sopenharmony_ci/* ExtensionType value from RFC7627 */ 135e1051a39Sopenharmony_ci# define TLSEXT_TYPE_extended_master_secret 23 136e1051a39Sopenharmony_ci 137e1051a39Sopenharmony_ci/* ExtensionType value from RFC4507 */ 138e1051a39Sopenharmony_ci# define TLSEXT_TYPE_session_ticket 35 139e1051a39Sopenharmony_ci 140e1051a39Sopenharmony_ci/* As defined for TLS1.3 */ 141e1051a39Sopenharmony_ci# define TLSEXT_TYPE_psk 41 142e1051a39Sopenharmony_ci# define TLSEXT_TYPE_early_data 42 143e1051a39Sopenharmony_ci# define TLSEXT_TYPE_supported_versions 43 144e1051a39Sopenharmony_ci# define TLSEXT_TYPE_cookie 44 145e1051a39Sopenharmony_ci# define TLSEXT_TYPE_psk_kex_modes 45 146e1051a39Sopenharmony_ci# define TLSEXT_TYPE_certificate_authorities 47 147e1051a39Sopenharmony_ci# define TLSEXT_TYPE_post_handshake_auth 49 148e1051a39Sopenharmony_ci# define TLSEXT_TYPE_signature_algorithms_cert 50 149e1051a39Sopenharmony_ci# define TLSEXT_TYPE_key_share 51 150e1051a39Sopenharmony_ci 151e1051a39Sopenharmony_ci/* Temporary extension type */ 152e1051a39Sopenharmony_ci# define TLSEXT_TYPE_renegotiate 0xff01 153e1051a39Sopenharmony_ci 154e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_NEXTPROTONEG 155e1051a39Sopenharmony_ci/* This is not an IANA defined extension number */ 156e1051a39Sopenharmony_ci# define TLSEXT_TYPE_next_proto_neg 13172 157e1051a39Sopenharmony_ci# endif 158e1051a39Sopenharmony_ci 159e1051a39Sopenharmony_ci/* NameType value from RFC3546 */ 160e1051a39Sopenharmony_ci# define TLSEXT_NAMETYPE_host_name 0 161e1051a39Sopenharmony_ci/* status request value from RFC3546 */ 162e1051a39Sopenharmony_ci# define TLSEXT_STATUSTYPE_ocsp 1 163e1051a39Sopenharmony_ci 164e1051a39Sopenharmony_ci/* ECPointFormat values from RFC4492 */ 165e1051a39Sopenharmony_ci# define TLSEXT_ECPOINTFORMAT_first 0 166e1051a39Sopenharmony_ci# define TLSEXT_ECPOINTFORMAT_uncompressed 0 167e1051a39Sopenharmony_ci# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime 1 168e1051a39Sopenharmony_ci# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_char2 2 169e1051a39Sopenharmony_ci# define TLSEXT_ECPOINTFORMAT_last 2 170e1051a39Sopenharmony_ci 171e1051a39Sopenharmony_ci/* Signature and hash algorithms from RFC5246 */ 172e1051a39Sopenharmony_ci# define TLSEXT_signature_anonymous 0 173e1051a39Sopenharmony_ci# define TLSEXT_signature_rsa 1 174e1051a39Sopenharmony_ci# define TLSEXT_signature_dsa 2 175e1051a39Sopenharmony_ci# define TLSEXT_signature_ecdsa 3 176e1051a39Sopenharmony_ci# define TLSEXT_signature_gostr34102001 237 177e1051a39Sopenharmony_ci# define TLSEXT_signature_gostr34102012_256 238 178e1051a39Sopenharmony_ci# define TLSEXT_signature_gostr34102012_512 239 179e1051a39Sopenharmony_ci 180e1051a39Sopenharmony_ci/* Total number of different signature algorithms */ 181e1051a39Sopenharmony_ci# define TLSEXT_signature_num 7 182e1051a39Sopenharmony_ci 183e1051a39Sopenharmony_ci# define TLSEXT_hash_none 0 184e1051a39Sopenharmony_ci# define TLSEXT_hash_md5 1 185e1051a39Sopenharmony_ci# define TLSEXT_hash_sha1 2 186e1051a39Sopenharmony_ci# define TLSEXT_hash_sha224 3 187e1051a39Sopenharmony_ci# define TLSEXT_hash_sha256 4 188e1051a39Sopenharmony_ci# define TLSEXT_hash_sha384 5 189e1051a39Sopenharmony_ci# define TLSEXT_hash_sha512 6 190e1051a39Sopenharmony_ci# define TLSEXT_hash_gostr3411 237 191e1051a39Sopenharmony_ci# define TLSEXT_hash_gostr34112012_256 238 192e1051a39Sopenharmony_ci# define TLSEXT_hash_gostr34112012_512 239 193e1051a39Sopenharmony_ci 194e1051a39Sopenharmony_ci/* Total number of different digest algorithms */ 195e1051a39Sopenharmony_ci 196e1051a39Sopenharmony_ci# define TLSEXT_hash_num 10 197e1051a39Sopenharmony_ci 198e1051a39Sopenharmony_ci/* Flag set for unrecognised algorithms */ 199e1051a39Sopenharmony_ci# define TLSEXT_nid_unknown 0x1000000 200e1051a39Sopenharmony_ci 201e1051a39Sopenharmony_ci/* ECC curves */ 202e1051a39Sopenharmony_ci 203e1051a39Sopenharmony_ci# define TLSEXT_curve_P_256 23 204e1051a39Sopenharmony_ci# define TLSEXT_curve_P_384 24 205e1051a39Sopenharmony_ci 206e1051a39Sopenharmony_ci/* OpenSSL value to disable maximum fragment length extension */ 207e1051a39Sopenharmony_ci# define TLSEXT_max_fragment_length_DISABLED 0 208e1051a39Sopenharmony_ci/* Allowed values for max fragment length extension */ 209e1051a39Sopenharmony_ci# define TLSEXT_max_fragment_length_512 1 210e1051a39Sopenharmony_ci# define TLSEXT_max_fragment_length_1024 2 211e1051a39Sopenharmony_ci# define TLSEXT_max_fragment_length_2048 3 212e1051a39Sopenharmony_ci# define TLSEXT_max_fragment_length_4096 4 213e1051a39Sopenharmony_ci 214e1051a39Sopenharmony_ciint SSL_CTX_set_tlsext_max_fragment_length(SSL_CTX *ctx, uint8_t mode); 215e1051a39Sopenharmony_ciint SSL_set_tlsext_max_fragment_length(SSL *ssl, uint8_t mode); 216e1051a39Sopenharmony_ci 217e1051a39Sopenharmony_ci# define TLSEXT_MAXLEN_host_name 255 218e1051a39Sopenharmony_ci 219e1051a39Sopenharmony_ci__owur const char *SSL_get_servername(const SSL *s, const int type); 220e1051a39Sopenharmony_ci__owur int SSL_get_servername_type(const SSL *s); 221e1051a39Sopenharmony_ci/* 222e1051a39Sopenharmony_ci * SSL_export_keying_material exports a value derived from the master secret, 223e1051a39Sopenharmony_ci * as specified in RFC 5705. It writes |olen| bytes to |out| given a label and 224e1051a39Sopenharmony_ci * optional context. (Since a zero length context is allowed, the |use_context| 225e1051a39Sopenharmony_ci * flag controls whether a context is included.) It returns 1 on success and 226e1051a39Sopenharmony_ci * 0 or -1 otherwise. 227e1051a39Sopenharmony_ci */ 228e1051a39Sopenharmony_ci__owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen, 229e1051a39Sopenharmony_ci const char *label, size_t llen, 230e1051a39Sopenharmony_ci const unsigned char *context, 231e1051a39Sopenharmony_ci size_t contextlen, int use_context); 232e1051a39Sopenharmony_ci 233e1051a39Sopenharmony_ci/* 234e1051a39Sopenharmony_ci * SSL_export_keying_material_early exports a value derived from the 235e1051a39Sopenharmony_ci * early exporter master secret, as specified in 236e1051a39Sopenharmony_ci * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes 237e1051a39Sopenharmony_ci * |olen| bytes to |out| given a label and optional context. It 238e1051a39Sopenharmony_ci * returns 1 on success and 0 otherwise. 239e1051a39Sopenharmony_ci */ 240e1051a39Sopenharmony_ci__owur int SSL_export_keying_material_early(SSL *s, unsigned char *out, 241e1051a39Sopenharmony_ci size_t olen, const char *label, 242e1051a39Sopenharmony_ci size_t llen, 243e1051a39Sopenharmony_ci const unsigned char *context, 244e1051a39Sopenharmony_ci size_t contextlen); 245e1051a39Sopenharmony_ci 246e1051a39Sopenharmony_ciint SSL_get_peer_signature_type_nid(const SSL *s, int *pnid); 247e1051a39Sopenharmony_ciint SSL_get_signature_type_nid(const SSL *s, int *pnid); 248e1051a39Sopenharmony_ci 249e1051a39Sopenharmony_ciint SSL_get_sigalgs(SSL *s, int idx, 250e1051a39Sopenharmony_ci int *psign, int *phash, int *psignandhash, 251e1051a39Sopenharmony_ci unsigned char *rsig, unsigned char *rhash); 252e1051a39Sopenharmony_ci 253e1051a39Sopenharmony_ciint SSL_get_shared_sigalgs(SSL *s, int idx, 254e1051a39Sopenharmony_ci int *psign, int *phash, int *psignandhash, 255e1051a39Sopenharmony_ci unsigned char *rsig, unsigned char *rhash); 256e1051a39Sopenharmony_ci 257e1051a39Sopenharmony_ci__owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain); 258e1051a39Sopenharmony_ci 259e1051a39Sopenharmony_ci# define SSL_set_tlsext_host_name(s,name) \ 260e1051a39Sopenharmony_ci SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,\ 261e1051a39Sopenharmony_ci (void *)name) 262e1051a39Sopenharmony_ci 263e1051a39Sopenharmony_ci# define SSL_set_tlsext_debug_callback(ssl, cb) \ 264e1051a39Sopenharmony_ci SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\ 265e1051a39Sopenharmony_ci (void (*)(void))cb) 266e1051a39Sopenharmony_ci 267e1051a39Sopenharmony_ci# define SSL_set_tlsext_debug_arg(ssl, arg) \ 268e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg) 269e1051a39Sopenharmony_ci 270e1051a39Sopenharmony_ci# define SSL_get_tlsext_status_type(ssl) \ 271e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL) 272e1051a39Sopenharmony_ci 273e1051a39Sopenharmony_ci# define SSL_set_tlsext_status_type(ssl, type) \ 274e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL) 275e1051a39Sopenharmony_ci 276e1051a39Sopenharmony_ci# define SSL_get_tlsext_status_exts(ssl, arg) \ 277e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg) 278e1051a39Sopenharmony_ci 279e1051a39Sopenharmony_ci# define SSL_set_tlsext_status_exts(ssl, arg) \ 280e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg) 281e1051a39Sopenharmony_ci 282e1051a39Sopenharmony_ci# define SSL_get_tlsext_status_ids(ssl, arg) \ 283e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg) 284e1051a39Sopenharmony_ci 285e1051a39Sopenharmony_ci# define SSL_set_tlsext_status_ids(ssl, arg) \ 286e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg) 287e1051a39Sopenharmony_ci 288e1051a39Sopenharmony_ci# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \ 289e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg) 290e1051a39Sopenharmony_ci 291e1051a39Sopenharmony_ci# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \ 292e1051a39Sopenharmony_ci SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg) 293e1051a39Sopenharmony_ci 294e1051a39Sopenharmony_ci# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \ 295e1051a39Sopenharmony_ci SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\ 296e1051a39Sopenharmony_ci (void (*)(void))cb) 297e1051a39Sopenharmony_ci 298e1051a39Sopenharmony_ci# define SSL_TLSEXT_ERR_OK 0 299e1051a39Sopenharmony_ci# define SSL_TLSEXT_ERR_ALERT_WARNING 1 300e1051a39Sopenharmony_ci# define SSL_TLSEXT_ERR_ALERT_FATAL 2 301e1051a39Sopenharmony_ci# define SSL_TLSEXT_ERR_NOACK 3 302e1051a39Sopenharmony_ci 303e1051a39Sopenharmony_ci# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \ 304e1051a39Sopenharmony_ci SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg) 305e1051a39Sopenharmony_ci 306e1051a39Sopenharmony_ci# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \ 307e1051a39Sopenharmony_ci SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys) 308e1051a39Sopenharmony_ci# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \ 309e1051a39Sopenharmony_ci SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys) 310e1051a39Sopenharmony_ci 311e1051a39Sopenharmony_ci# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \ 312e1051a39Sopenharmony_ci SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb) 313e1051a39Sopenharmony_ci# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \ 314e1051a39Sopenharmony_ci SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\ 315e1051a39Sopenharmony_ci (void (*)(void))cb) 316e1051a39Sopenharmony_ci 317e1051a39Sopenharmony_ci# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \ 318e1051a39Sopenharmony_ci SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg) 319e1051a39Sopenharmony_ci# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \ 320e1051a39Sopenharmony_ci SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg) 321e1051a39Sopenharmony_ci 322e1051a39Sopenharmony_ci# define SSL_CTX_set_tlsext_status_type(ssl, type) \ 323e1051a39Sopenharmony_ci SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL) 324e1051a39Sopenharmony_ci 325e1051a39Sopenharmony_ci# define SSL_CTX_get_tlsext_status_type(ssl) \ 326e1051a39Sopenharmony_ci SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL) 327e1051a39Sopenharmony_ci 328e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_DEPRECATED_3_0 329e1051a39Sopenharmony_ci# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \ 330e1051a39Sopenharmony_ci SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\ 331e1051a39Sopenharmony_ci (void (*)(void))cb) 332e1051a39Sopenharmony_ci# endif 333e1051a39Sopenharmony_ciint SSL_CTX_set_tlsext_ticket_key_evp_cb 334e1051a39Sopenharmony_ci (SSL_CTX *ctx, int (*fp)(SSL *, unsigned char *, unsigned char *, 335e1051a39Sopenharmony_ci EVP_CIPHER_CTX *, EVP_MAC_CTX *, int)); 336e1051a39Sopenharmony_ci 337e1051a39Sopenharmony_ci/* PSK ciphersuites from 4279 */ 338e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_RC4_128_SHA 0x0300008A 339e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA 0x0300008B 340e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA 0x0300008C 341e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA 0x0300008D 342e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_RC4_128_SHA 0x0300008E 343e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA 0x0300008F 344e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA 0x03000090 345e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA 0x03000091 346e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_RC4_128_SHA 0x03000092 347e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA 0x03000093 348e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA 0x03000094 349e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA 0x03000095 350e1051a39Sopenharmony_ci 351e1051a39Sopenharmony_ci/* PSK ciphersuites from 5487 */ 352e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_128_GCM_SHA256 0x030000A8 353e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_256_GCM_SHA384 0x030000A9 354e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256 0x030000AA 355e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384 0x030000AB 356e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256 0x030000AC 357e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384 0x030000AD 358e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA256 0x030000AE 359e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA384 0x030000AF 360e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_NULL_SHA256 0x030000B0 361e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_NULL_SHA384 0x030000B1 362e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256 0x030000B2 363e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384 0x030000B3 364e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_NULL_SHA256 0x030000B4 365e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_NULL_SHA384 0x030000B5 366e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256 0x030000B6 367e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384 0x030000B7 368e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_NULL_SHA256 0x030000B8 369e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_NULL_SHA384 0x030000B9 370e1051a39Sopenharmony_ci 371e1051a39Sopenharmony_ci/* NULL PSK ciphersuites from RFC4785 */ 372e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_NULL_SHA 0x0300002C 373e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_NULL_SHA 0x0300002D 374e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_NULL_SHA 0x0300002E 375e1051a39Sopenharmony_ci 376e1051a39Sopenharmony_ci/* AES ciphersuites from RFC3268 */ 377e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_128_SHA 0x0300002F 378e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_AES_128_SHA 0x03000030 379e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_AES_128_SHA 0x03000031 380e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA 0x03000032 381e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA 0x03000033 382e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_AES_128_SHA 0x03000034 383e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_256_SHA 0x03000035 384e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_AES_256_SHA 0x03000036 385e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_AES_256_SHA 0x03000037 386e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA 0x03000038 387e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA 0x03000039 388e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_AES_256_SHA 0x0300003A 389e1051a39Sopenharmony_ci 390e1051a39Sopenharmony_ci/* TLS v1.2 ciphersuites */ 391e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_NULL_SHA256 0x0300003B 392e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_128_SHA256 0x0300003C 393e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_256_SHA256 0x0300003D 394e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_AES_128_SHA256 0x0300003E 395e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_AES_128_SHA256 0x0300003F 396e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA256 0x03000040 397e1051a39Sopenharmony_ci 398e1051a39Sopenharmony_ci/* Camellia ciphersuites from RFC4132 */ 399e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000041 400e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA 0x03000042 401e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000043 402e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA 0x03000044 403e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA 0x03000045 404e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA 0x03000046 405e1051a39Sopenharmony_ci 406e1051a39Sopenharmony_ci/* TLS v1.2 ciphersuites */ 407e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA256 0x03000067 408e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_AES_256_SHA256 0x03000068 409e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_AES_256_SHA256 0x03000069 410e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA256 0x0300006A 411e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA256 0x0300006B 412e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_AES_128_SHA256 0x0300006C 413e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_AES_256_SHA256 0x0300006D 414e1051a39Sopenharmony_ci 415e1051a39Sopenharmony_ci/* Camellia ciphersuites from RFC4132 */ 416e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000084 417e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA 0x03000085 418e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000086 419e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA 0x03000087 420e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA 0x03000088 421e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA 0x03000089 422e1051a39Sopenharmony_ci 423e1051a39Sopenharmony_ci/* SEED ciphersuites from RFC4162 */ 424e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_SEED_SHA 0x03000096 425e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_SEED_SHA 0x03000097 426e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_SEED_SHA 0x03000098 427e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_SEED_SHA 0x03000099 428e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_SEED_SHA 0x0300009A 429e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_SEED_SHA 0x0300009B 430e1051a39Sopenharmony_ci 431e1051a39Sopenharmony_ci/* TLS v1.2 GCM ciphersuites from RFC5288 */ 432e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_128_GCM_SHA256 0x0300009C 433e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_256_GCM_SHA384 0x0300009D 434e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256 0x0300009E 435e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384 0x0300009F 436e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256 0x030000A0 437e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384 0x030000A1 438e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256 0x030000A2 439e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384 0x030000A3 440e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256 0x030000A4 441e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384 0x030000A5 442e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_AES_128_GCM_SHA256 0x030000A6 443e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 0x030000A7 444e1051a39Sopenharmony_ci 445e1051a39Sopenharmony_ci/* CCM ciphersuites from RFC6655 */ 446e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_128_CCM 0x0300C09C 447e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_256_CCM 0x0300C09D 448e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM 0x0300C09E 449e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM 0x0300C09F 450e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_128_CCM_8 0x0300C0A0 451e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_AES_256_CCM_8 0x0300C0A1 452e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8 0x0300C0A2 453e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8 0x0300C0A3 454e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_128_CCM 0x0300C0A4 455e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_256_CCM 0x0300C0A5 456e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM 0x0300C0A6 457e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM 0x0300C0A7 458e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_128_CCM_8 0x0300C0A8 459e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_AES_256_CCM_8 0x0300C0A9 460e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8 0x0300C0AA 461e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8 0x0300C0AB 462e1051a39Sopenharmony_ci 463e1051a39Sopenharmony_ci/* CCM ciphersuites from RFC7251 */ 464e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM 0x0300C0AC 465e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM 0x0300C0AD 466e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8 0x0300C0AE 467e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8 0x0300C0AF 468e1051a39Sopenharmony_ci 469e1051a39Sopenharmony_ci/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */ 470e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BA 471e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 0x030000BB 472e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BC 473e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 0x030000BD 474e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BE 475e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256 0x030000BF 476e1051a39Sopenharmony_ci 477e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C0 478e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 0x030000C1 479e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C2 480e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 0x030000C3 481e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C4 482e1051a39Sopenharmony_ci# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256 0x030000C5 483e1051a39Sopenharmony_ci 484e1051a39Sopenharmony_ci/* ECC ciphersuites from RFC4492 */ 485e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA 0x0300C001 486e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA 0x0300C002 487e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA 0x0300C003 488e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA 0x0300C004 489e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA 0x0300C005 490e1051a39Sopenharmony_ci 491e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA 0x0300C006 492e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA 0x0300C007 493e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA 0x0300C008 494e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA 0x0300C009 495e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA 0x0300C00A 496e1051a39Sopenharmony_ci 497e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_NULL_SHA 0x0300C00B 498e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA 0x0300C00C 499e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA 0x0300C00D 500e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA 0x0300C00E 501e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA 0x0300C00F 502e1051a39Sopenharmony_ci 503e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_NULL_SHA 0x0300C010 504e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA 0x0300C011 505e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA 0x0300C012 506e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA 0x0300C013 507e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA 0x0300C014 508e1051a39Sopenharmony_ci 509e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_anon_WITH_NULL_SHA 0x0300C015 510e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_anon_WITH_RC4_128_SHA 0x0300C016 511e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA 0x0300C017 512e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA 0x0300C018 513e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA 0x0300C019 514e1051a39Sopenharmony_ci 515e1051a39Sopenharmony_ci/* SRP ciphersuites from RFC 5054 */ 516e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA 0x0300C01A 517e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA 0x0300C01B 518e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA 0x0300C01C 519e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA 0x0300C01D 520e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA 0x0300C01E 521e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA 0x0300C01F 522e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA 0x0300C020 523e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA 0x0300C021 524e1051a39Sopenharmony_ci# define TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA 0x0300C022 525e1051a39Sopenharmony_ci 526e1051a39Sopenharmony_ci/* ECDH HMAC based ciphersuites from RFC5289 */ 527e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256 0x0300C023 528e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384 0x0300C024 529e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256 0x0300C025 530e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384 0x0300C026 531e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256 0x0300C027 532e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384 0x0300C028 533e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256 0x0300C029 534e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384 0x0300C02A 535e1051a39Sopenharmony_ci 536e1051a39Sopenharmony_ci/* ECDH GCM based ciphersuites from RFC5289 */ 537e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 0x0300C02B 538e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 0x0300C02C 539e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 0x0300C02D 540e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 0x0300C02E 541e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256 0x0300C02F 542e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384 0x0300C030 543e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256 0x0300C031 544e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384 0x0300C032 545e1051a39Sopenharmony_ci 546e1051a39Sopenharmony_ci/* ECDHE PSK ciphersuites from RFC5489 */ 547e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA 0x0300C033 548e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA 0x0300C034 549e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA 0x0300C035 550e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA 0x0300C036 551e1051a39Sopenharmony_ci 552e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256 0x0300C037 553e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384 0x0300C038 554e1051a39Sopenharmony_ci 555e1051a39Sopenharmony_ci/* NULL PSK ciphersuites from RFC4785 */ 556e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA 0x0300C039 557e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256 0x0300C03A 558e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384 0x0300C03B 559e1051a39Sopenharmony_ci 560e1051a39Sopenharmony_ci/* Camellia-CBC ciphersuites from RFC6367 */ 561e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C072 562e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C073 563e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C074 564e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C075 565e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C076 566e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C077 567e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C078 568e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C079 569e1051a39Sopenharmony_ci 570e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C094 571e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C095 572e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C096 573e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C097 574e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C098 575e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C099 576e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 0x0300C09A 577e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 0x0300C09B 578e1051a39Sopenharmony_ci 579e1051a39Sopenharmony_ci/* draft-ietf-tls-chacha20-poly1305-03 */ 580e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305 0x0300CCA8 581e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 0x0300CCA9 582e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305 0x0300CCAA 583e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_CHACHA20_POLY1305 0x0300CCAB 584e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305 0x0300CCAC 585e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305 0x0300CCAD 586e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305 0x0300CCAE 587e1051a39Sopenharmony_ci 588e1051a39Sopenharmony_ci/* TLS v1.3 ciphersuites */ 589e1051a39Sopenharmony_ci# define TLS1_3_CK_AES_128_GCM_SHA256 0x03001301 590e1051a39Sopenharmony_ci# define TLS1_3_CK_AES_256_GCM_SHA384 0x03001302 591e1051a39Sopenharmony_ci# define TLS1_3_CK_CHACHA20_POLY1305_SHA256 0x03001303 592e1051a39Sopenharmony_ci# define TLS1_3_CK_AES_128_CCM_SHA256 0x03001304 593e1051a39Sopenharmony_ci# define TLS1_3_CK_AES_128_CCM_8_SHA256 0x03001305 594e1051a39Sopenharmony_ci 595e1051a39Sopenharmony_ci/* Aria ciphersuites from RFC6209 */ 596e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C050 597e1051a39Sopenharmony_ci# define TLS1_CK_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C051 598e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C052 599e1051a39Sopenharmony_ci# define TLS1_CK_DHE_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C053 600e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C054 601e1051a39Sopenharmony_ci# define TLS1_CK_DH_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C055 602e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_ARIA_128_GCM_SHA256 0x0300C056 603e1051a39Sopenharmony_ci# define TLS1_CK_DHE_DSS_WITH_ARIA_256_GCM_SHA384 0x0300C057 604e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_ARIA_128_GCM_SHA256 0x0300C058 605e1051a39Sopenharmony_ci# define TLS1_CK_DH_DSS_WITH_ARIA_256_GCM_SHA384 0x0300C059 606e1051a39Sopenharmony_ci# define TLS1_CK_DH_anon_WITH_ARIA_128_GCM_SHA256 0x0300C05A 607e1051a39Sopenharmony_ci# define TLS1_CK_DH_anon_WITH_ARIA_256_GCM_SHA384 0x0300C05B 608e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 0x0300C05C 609e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 0x0300C05D 610e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 0x0300C05E 611e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 0x0300C05F 612e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C060 613e1051a39Sopenharmony_ci# define TLS1_CK_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C061 614e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 0x0300C062 615e1051a39Sopenharmony_ci# define TLS1_CK_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 0x0300C063 616e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06A 617e1051a39Sopenharmony_ci# define TLS1_CK_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06B 618e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06C 619e1051a39Sopenharmony_ci# define TLS1_CK_DHE_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06D 620e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_ARIA_128_GCM_SHA256 0x0300C06E 621e1051a39Sopenharmony_ci# define TLS1_CK_RSA_PSK_WITH_ARIA_256_GCM_SHA384 0x0300C06F 622e1051a39Sopenharmony_ci 623e1051a39Sopenharmony_ci/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */ 624e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_128_SHA "TLS_RSA_WITH_AES_128_CBC_SHA" 625e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" 626e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" 627e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_AES_128_SHA "TLS_DH_anon_WITH_AES_128_CBC_SHA" 628e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_256_SHA "TLS_RSA_WITH_AES_256_CBC_SHA" 629e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" 630e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" 631e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_AES_256_SHA "TLS_DH_anon_WITH_AES_256_CBC_SHA" 632e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_NULL_SHA256 "TLS_RSA_WITH_NULL_SHA256" 633e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_128_SHA256 "TLS_RSA_WITH_AES_128_CBC_SHA256" 634e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_256_SHA256 "TLS_RSA_WITH_AES_256_CBC_SHA256" 635e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA256 "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" 636e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA256 "TLS_DHE_RSA_WITH_AES_128_CBC_SHA256" 637e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA256 "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" 638e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA256 "TLS_DHE_RSA_WITH_AES_256_CBC_SHA256" 639e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_AES_128_SHA256 "TLS_DH_anon_WITH_AES_128_CBC_SHA256" 640e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_AES_256_SHA256 "TLS_DH_anon_WITH_AES_256_CBC_SHA256" 641e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_128_GCM_SHA256 "TLS_RSA_WITH_AES_128_GCM_SHA256" 642e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_256_GCM_SHA384 "TLS_RSA_WITH_AES_256_GCM_SHA384" 643e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_128_GCM_SHA256 "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" 644e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_256_GCM_SHA384 "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" 645e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_AES_128_GCM_SHA256 "TLS_DHE_DSS_WITH_AES_128_GCM_SHA256" 646e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_AES_256_GCM_SHA384 "TLS_DHE_DSS_WITH_AES_256_GCM_SHA384" 647e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_AES_128_GCM_SHA256 "TLS_DH_anon_WITH_AES_128_GCM_SHA256" 648e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_AES_256_GCM_SHA384 "TLS_DH_anon_WITH_AES_256_GCM_SHA384" 649e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_128_CCM "TLS_RSA_WITH_AES_128_CCM" 650e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_256_CCM "TLS_RSA_WITH_AES_256_CCM" 651e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM "TLS_DHE_RSA_WITH_AES_128_CCM" 652e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM "TLS_DHE_RSA_WITH_AES_256_CCM" 653e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_128_CCM_8 "TLS_RSA_WITH_AES_128_CCM_8" 654e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_AES_256_CCM_8 "TLS_RSA_WITH_AES_256_CCM_8" 655e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM_8 "TLS_DHE_RSA_WITH_AES_128_CCM_8" 656e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM_8 "TLS_DHE_RSA_WITH_AES_256_CCM_8" 657e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_128_CCM "TLS_PSK_WITH_AES_128_CCM" 658e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_256_CCM "TLS_PSK_WITH_AES_256_CCM" 659e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM "TLS_DHE_PSK_WITH_AES_128_CCM" 660e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM "TLS_DHE_PSK_WITH_AES_256_CCM" 661e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_128_CCM_8 "TLS_PSK_WITH_AES_128_CCM_8" 662e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_256_CCM_8 "TLS_PSK_WITH_AES_256_CCM_8" 663e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM_8 "TLS_PSK_DHE_WITH_AES_128_CCM_8" 664e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM_8 "TLS_PSK_DHE_WITH_AES_256_CCM_8" 665e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM "TLS_ECDHE_ECDSA_WITH_AES_128_CCM" 666e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM "TLS_ECDHE_ECDSA_WITH_AES_256_CCM" 667e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM_8 "TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8" 668e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM_8 "TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8" 669e1051a39Sopenharmony_ci# define TLS1_3_RFC_AES_128_GCM_SHA256 "TLS_AES_128_GCM_SHA256" 670e1051a39Sopenharmony_ci# define TLS1_3_RFC_AES_256_GCM_SHA384 "TLS_AES_256_GCM_SHA384" 671e1051a39Sopenharmony_ci# define TLS1_3_RFC_CHACHA20_POLY1305_SHA256 "TLS_CHACHA20_POLY1305_SHA256" 672e1051a39Sopenharmony_ci# define TLS1_3_RFC_AES_128_CCM_SHA256 "TLS_AES_128_CCM_SHA256" 673e1051a39Sopenharmony_ci# define TLS1_3_RFC_AES_128_CCM_8_SHA256 "TLS_AES_128_CCM_8_SHA256" 674e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_NULL_SHA "TLS_ECDHE_ECDSA_WITH_NULL_SHA" 675e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" 676e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CBC_SHA "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" 677e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CBC_SHA "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" 678e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_NULL_SHA "TLS_ECDHE_RSA_WITH_NULL_SHA" 679e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_DES_192_CBC3_SHA "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" 680e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_CBC_SHA "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" 681e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_CBC_SHA "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" 682e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_anon_WITH_NULL_SHA "TLS_ECDH_anon_WITH_NULL_SHA" 683e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_anon_WITH_DES_192_CBC3_SHA "TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA" 684e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_anon_WITH_AES_128_CBC_SHA "TLS_ECDH_anon_WITH_AES_128_CBC_SHA" 685e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_anon_WITH_AES_256_CBC_SHA "TLS_ECDH_anon_WITH_AES_256_CBC_SHA" 686e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_SHA256 "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" 687e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_SHA384 "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" 688e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_SHA256 "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" 689e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_SHA384 "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" 690e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" 691e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" 692e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_GCM_SHA256 "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" 693e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_GCM_SHA384 "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" 694e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_NULL_SHA "TLS_PSK_WITH_NULL_SHA" 695e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA "TLS_DHE_PSK_WITH_NULL_SHA" 696e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA "TLS_RSA_PSK_WITH_NULL_SHA" 697e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_3DES_EDE_CBC_SHA "TLS_PSK_WITH_3DES_EDE_CBC_SHA" 698e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA "TLS_PSK_WITH_AES_128_CBC_SHA" 699e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA "TLS_PSK_WITH_AES_256_CBC_SHA" 700e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_3DES_EDE_CBC_SHA "TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA" 701e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA "TLS_DHE_PSK_WITH_AES_128_CBC_SHA" 702e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA "TLS_DHE_PSK_WITH_AES_256_CBC_SHA" 703e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_3DES_EDE_CBC_SHA "TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA" 704e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA "TLS_RSA_PSK_WITH_AES_128_CBC_SHA" 705e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA "TLS_RSA_PSK_WITH_AES_256_CBC_SHA" 706e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_128_GCM_SHA256 "TLS_PSK_WITH_AES_128_GCM_SHA256" 707e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_256_GCM_SHA384 "TLS_PSK_WITH_AES_256_GCM_SHA384" 708e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_128_GCM_SHA256 "TLS_DHE_PSK_WITH_AES_128_GCM_SHA256" 709e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_256_GCM_SHA384 "TLS_DHE_PSK_WITH_AES_256_GCM_SHA384" 710e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_AES_128_GCM_SHA256 "TLS_RSA_PSK_WITH_AES_128_GCM_SHA256" 711e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_AES_256_GCM_SHA384 "TLS_RSA_PSK_WITH_AES_256_GCM_SHA384" 712e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA256 "TLS_PSK_WITH_AES_128_CBC_SHA256" 713e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA384 "TLS_PSK_WITH_AES_256_CBC_SHA384" 714e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_NULL_SHA256 "TLS_PSK_WITH_NULL_SHA256" 715e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_NULL_SHA384 "TLS_PSK_WITH_NULL_SHA384" 716e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA256 "TLS_DHE_PSK_WITH_AES_128_CBC_SHA256" 717e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA384 "TLS_DHE_PSK_WITH_AES_256_CBC_SHA384" 718e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA256 "TLS_DHE_PSK_WITH_NULL_SHA256" 719e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA384 "TLS_DHE_PSK_WITH_NULL_SHA384" 720e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA256 "TLS_RSA_PSK_WITH_AES_128_CBC_SHA256" 721e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA384 "TLS_RSA_PSK_WITH_AES_256_CBC_SHA384" 722e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA256 "TLS_RSA_PSK_WITH_NULL_SHA256" 723e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA384 "TLS_RSA_PSK_WITH_NULL_SHA384" 724e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA "TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA" 725e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA "TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA" 726e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA "TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA" 727e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA256 "TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256" 728e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA384 "TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384" 729e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA "TLS_ECDHE_PSK_WITH_NULL_SHA" 730e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA256 "TLS_ECDHE_PSK_WITH_NULL_SHA256" 731e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA384 "TLS_ECDHE_PSK_WITH_NULL_SHA384" 732e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA" 733e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA" 734e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA "TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA" 735e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_WITH_AES_128_CBC_SHA" 736e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA" 737e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_128_CBC_SHA "TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA" 738e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_WITH_AES_256_CBC_SHA" 739e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA" 740e1051a39Sopenharmony_ci# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_256_CBC_SHA "TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA" 741e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_CHACHA20_POLY1305 "TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256" 742e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_CHACHA20_POLY1305 "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256" 743e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256" 744e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_CHACHA20_POLY1305 "TLS_PSK_WITH_CHACHA20_POLY1305_SHA256" 745e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_CHACHA20_POLY1305 "TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256" 746e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_CHACHA20_POLY1305 "TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256" 747e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_CHACHA20_POLY1305 "TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256" 748e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256" 749e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256" 750e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256" 751e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256" 752e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA256 "TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256" 753e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256" 754e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256" 755e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA256 "TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256" 756e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA "TLS_RSA_WITH_CAMELLIA_256_CBC_SHA" 757e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA "TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA" 758e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA" 759e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA "TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA" 760e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA "TLS_RSA_WITH_CAMELLIA_128_CBC_SHA" 761e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA "TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA" 762e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA "TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA" 763e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA "TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA" 764e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256" 765e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384" 766e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256" 767e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384" 768e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256" 769e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384" 770e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256" 771e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384" 772e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256" 773e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384" 774e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256" 775e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384" 776e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_SEED_SHA "TLS_RSA_WITH_SEED_CBC_SHA" 777e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_SEED_SHA "TLS_DHE_DSS_WITH_SEED_CBC_SHA" 778e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_SEED_SHA "TLS_DHE_RSA_WITH_SEED_CBC_SHA" 779e1051a39Sopenharmony_ci# define TLS1_RFC_ADH_WITH_SEED_SHA "TLS_DH_anon_WITH_SEED_CBC_SHA" 780e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_PSK_WITH_RC4_128_SHA "TLS_ECDHE_PSK_WITH_RC4_128_SHA" 781e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_anon_WITH_RC4_128_SHA "TLS_ECDH_anon_WITH_RC4_128_SHA" 782e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_RC4_128_SHA "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" 783e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_RC4_128_SHA "TLS_ECDHE_RSA_WITH_RC4_128_SHA" 784e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_RC4_128_SHA "TLS_PSK_WITH_RC4_128_SHA" 785e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_RC4_128_SHA "TLS_RSA_PSK_WITH_RC4_128_SHA" 786e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_RC4_128_SHA "TLS_DHE_PSK_WITH_RC4_128_SHA" 787e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_RSA_WITH_ARIA_128_GCM_SHA256" 788e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_RSA_WITH_ARIA_256_GCM_SHA384" 789e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256" 790e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384" 791e1051a39Sopenharmony_ci# define TLS1_RFC_DH_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256" 792e1051a39Sopenharmony_ci# define TLS1_RFC_DH_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384" 793e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256" 794e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_DSS_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384" 795e1051a39Sopenharmony_ci# define TLS1_RFC_DH_DSS_WITH_ARIA_128_GCM_SHA256 "TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256" 796e1051a39Sopenharmony_ci# define TLS1_RFC_DH_DSS_WITH_ARIA_256_GCM_SHA384 "TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384" 797e1051a39Sopenharmony_ci# define TLS1_RFC_DH_anon_WITH_ARIA_128_GCM_SHA256 "TLS_DH_anon_WITH_ARIA_128_GCM_SHA256" 798e1051a39Sopenharmony_ci# define TLS1_RFC_DH_anon_WITH_ARIA_256_GCM_SHA384 "TLS_DH_anon_WITH_ARIA_256_GCM_SHA384" 799e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256" 800e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384" 801e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256" 802e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384" 803e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256" 804e1051a39Sopenharmony_ci# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384" 805e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 "TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256" 806e1051a39Sopenharmony_ci# define TLS1_RFC_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 "TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384" 807e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_PSK_WITH_ARIA_128_GCM_SHA256" 808e1051a39Sopenharmony_ci# define TLS1_RFC_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_PSK_WITH_ARIA_256_GCM_SHA384" 809e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256" 810e1051a39Sopenharmony_ci# define TLS1_RFC_DHE_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384" 811e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_ARIA_128_GCM_SHA256 "TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256" 812e1051a39Sopenharmony_ci# define TLS1_RFC_RSA_PSK_WITH_ARIA_256_GCM_SHA384 "TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384" 813e1051a39Sopenharmony_ci 814e1051a39Sopenharmony_ci 815e1051a39Sopenharmony_ci/* 816e1051a39Sopenharmony_ci * XXX Backward compatibility alert: Older versions of OpenSSL gave some DHE 817e1051a39Sopenharmony_ci * ciphers names with "EDH" instead of "DHE". Going forward, we should be 818e1051a39Sopenharmony_ci * using DHE everywhere, though we may indefinitely maintain aliases for 819e1051a39Sopenharmony_ci * users or configurations that used "EDH" 820e1051a39Sopenharmony_ci */ 821e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA "DHE-DSS-RC4-SHA" 822e1051a39Sopenharmony_ci 823e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_NULL_SHA "PSK-NULL-SHA" 824e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA "DHE-PSK-NULL-SHA" 825e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA "RSA-PSK-NULL-SHA" 826e1051a39Sopenharmony_ci 827e1051a39Sopenharmony_ci/* AES ciphersuites from RFC3268 */ 828e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_128_SHA "AES128-SHA" 829e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA "DH-DSS-AES128-SHA" 830e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA "DH-RSA-AES128-SHA" 831e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA "DHE-DSS-AES128-SHA" 832e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA "DHE-RSA-AES128-SHA" 833e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_AES_128_SHA "ADH-AES128-SHA" 834e1051a39Sopenharmony_ci 835e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_256_SHA "AES256-SHA" 836e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA "DH-DSS-AES256-SHA" 837e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA "DH-RSA-AES256-SHA" 838e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA "DHE-DSS-AES256-SHA" 839e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA "DHE-RSA-AES256-SHA" 840e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_AES_256_SHA "ADH-AES256-SHA" 841e1051a39Sopenharmony_ci 842e1051a39Sopenharmony_ci/* ECC ciphersuites from RFC4492 */ 843e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA "ECDH-ECDSA-NULL-SHA" 844e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA "ECDH-ECDSA-RC4-SHA" 845e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA "ECDH-ECDSA-DES-CBC3-SHA" 846e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA "ECDH-ECDSA-AES128-SHA" 847e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA "ECDH-ECDSA-AES256-SHA" 848e1051a39Sopenharmony_ci 849e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA "ECDHE-ECDSA-NULL-SHA" 850e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA "ECDHE-ECDSA-RC4-SHA" 851e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA "ECDHE-ECDSA-DES-CBC3-SHA" 852e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA "ECDHE-ECDSA-AES128-SHA" 853e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA "ECDHE-ECDSA-AES256-SHA" 854e1051a39Sopenharmony_ci 855e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_NULL_SHA "ECDH-RSA-NULL-SHA" 856e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA "ECDH-RSA-RC4-SHA" 857e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA "ECDH-RSA-DES-CBC3-SHA" 858e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA "ECDH-RSA-AES128-SHA" 859e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA "ECDH-RSA-AES256-SHA" 860e1051a39Sopenharmony_ci 861e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA "ECDHE-RSA-NULL-SHA" 862e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA "ECDHE-RSA-RC4-SHA" 863e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA "ECDHE-RSA-DES-CBC3-SHA" 864e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA "ECDHE-RSA-AES128-SHA" 865e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA "ECDHE-RSA-AES256-SHA" 866e1051a39Sopenharmony_ci 867e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_anon_WITH_NULL_SHA "AECDH-NULL-SHA" 868e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA "AECDH-RC4-SHA" 869e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA "AECDH-DES-CBC3-SHA" 870e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA "AECDH-AES128-SHA" 871e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA "AECDH-AES256-SHA" 872e1051a39Sopenharmony_ci 873e1051a39Sopenharmony_ci/* PSK ciphersuites from RFC 4279 */ 874e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_RC4_128_SHA "PSK-RC4-SHA" 875e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA "PSK-3DES-EDE-CBC-SHA" 876e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA "PSK-AES128-CBC-SHA" 877e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA "PSK-AES256-CBC-SHA" 878e1051a39Sopenharmony_ci 879e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_RC4_128_SHA "DHE-PSK-RC4-SHA" 880e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_3DES_EDE_CBC_SHA "DHE-PSK-3DES-EDE-CBC-SHA" 881e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA "DHE-PSK-AES128-CBC-SHA" 882e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA "DHE-PSK-AES256-CBC-SHA" 883e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_RC4_128_SHA "RSA-PSK-RC4-SHA" 884e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_3DES_EDE_CBC_SHA "RSA-PSK-3DES-EDE-CBC-SHA" 885e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA "RSA-PSK-AES128-CBC-SHA" 886e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA "RSA-PSK-AES256-CBC-SHA" 887e1051a39Sopenharmony_ci 888e1051a39Sopenharmony_ci/* PSK ciphersuites from RFC 5487 */ 889e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 "PSK-AES128-GCM-SHA256" 890e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 "PSK-AES256-GCM-SHA384" 891e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_128_GCM_SHA256 "DHE-PSK-AES128-GCM-SHA256" 892e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_256_GCM_SHA384 "DHE-PSK-AES256-GCM-SHA384" 893e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_AES_128_GCM_SHA256 "RSA-PSK-AES128-GCM-SHA256" 894e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_AES_256_GCM_SHA384 "RSA-PSK-AES256-GCM-SHA384" 895e1051a39Sopenharmony_ci 896e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA256 "PSK-AES128-CBC-SHA256" 897e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA384 "PSK-AES256-CBC-SHA384" 898e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_NULL_SHA256 "PSK-NULL-SHA256" 899e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_NULL_SHA384 "PSK-NULL-SHA384" 900e1051a39Sopenharmony_ci 901e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA256 "DHE-PSK-AES128-CBC-SHA256" 902e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA384 "DHE-PSK-AES256-CBC-SHA384" 903e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA256 "DHE-PSK-NULL-SHA256" 904e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA384 "DHE-PSK-NULL-SHA384" 905e1051a39Sopenharmony_ci 906e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA256 "RSA-PSK-AES128-CBC-SHA256" 907e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA384 "RSA-PSK-AES256-CBC-SHA384" 908e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA256 "RSA-PSK-NULL-SHA256" 909e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA384 "RSA-PSK-NULL-SHA384" 910e1051a39Sopenharmony_ci 911e1051a39Sopenharmony_ci/* SRP ciphersuite from RFC 5054 */ 912e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA "SRP-3DES-EDE-CBC-SHA" 913e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA "SRP-RSA-3DES-EDE-CBC-SHA" 914e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA "SRP-DSS-3DES-EDE-CBC-SHA" 915e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA "SRP-AES-128-CBC-SHA" 916e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA "SRP-RSA-AES-128-CBC-SHA" 917e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA "SRP-DSS-AES-128-CBC-SHA" 918e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA "SRP-AES-256-CBC-SHA" 919e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA "SRP-RSA-AES-256-CBC-SHA" 920e1051a39Sopenharmony_ci# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA "SRP-DSS-AES-256-CBC-SHA" 921e1051a39Sopenharmony_ci 922e1051a39Sopenharmony_ci/* Camellia ciphersuites from RFC4132 */ 923e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA "CAMELLIA128-SHA" 924e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA "DH-DSS-CAMELLIA128-SHA" 925e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA "DH-RSA-CAMELLIA128-SHA" 926e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA "DHE-DSS-CAMELLIA128-SHA" 927e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA "DHE-RSA-CAMELLIA128-SHA" 928e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA "ADH-CAMELLIA128-SHA" 929e1051a39Sopenharmony_ci 930e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA "CAMELLIA256-SHA" 931e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA "DH-DSS-CAMELLIA256-SHA" 932e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA "DH-RSA-CAMELLIA256-SHA" 933e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA "DHE-DSS-CAMELLIA256-SHA" 934e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "DHE-RSA-CAMELLIA256-SHA" 935e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA "ADH-CAMELLIA256-SHA" 936e1051a39Sopenharmony_ci 937e1051a39Sopenharmony_ci/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */ 938e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256 "CAMELLIA128-SHA256" 939e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 "DH-DSS-CAMELLIA128-SHA256" 940e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 "DH-RSA-CAMELLIA128-SHA256" 941e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 "DHE-DSS-CAMELLIA128-SHA256" 942e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "DHE-RSA-CAMELLIA128-SHA256" 943e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256 "ADH-CAMELLIA128-SHA256" 944e1051a39Sopenharmony_ci 945e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256 "CAMELLIA256-SHA256" 946e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 "DH-DSS-CAMELLIA256-SHA256" 947e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 "DH-RSA-CAMELLIA256-SHA256" 948e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 "DHE-DSS-CAMELLIA256-SHA256" 949e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 "DHE-RSA-CAMELLIA256-SHA256" 950e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256 "ADH-CAMELLIA256-SHA256" 951e1051a39Sopenharmony_ci 952e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_CAMELLIA_128_CBC_SHA256 "PSK-CAMELLIA128-SHA256" 953e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_CAMELLIA_256_CBC_SHA384 "PSK-CAMELLIA256-SHA384" 954e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "DHE-PSK-CAMELLIA128-SHA256" 955e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "DHE-PSK-CAMELLIA256-SHA384" 956e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 "RSA-PSK-CAMELLIA128-SHA256" 957e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 "RSA-PSK-CAMELLIA256-SHA384" 958e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-PSK-CAMELLIA128-SHA256" 959e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-PSK-CAMELLIA256-SHA384" 960e1051a39Sopenharmony_ci 961e1051a39Sopenharmony_ci/* SEED ciphersuites from RFC4162 */ 962e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_SEED_SHA "SEED-SHA" 963e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_SEED_SHA "DH-DSS-SEED-SHA" 964e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_SEED_SHA "DH-RSA-SEED-SHA" 965e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_SEED_SHA "DHE-DSS-SEED-SHA" 966e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_SEED_SHA "DHE-RSA-SEED-SHA" 967e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_SEED_SHA "ADH-SEED-SHA" 968e1051a39Sopenharmony_ci 969e1051a39Sopenharmony_ci/* TLS v1.2 ciphersuites */ 970e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_NULL_SHA256 "NULL-SHA256" 971e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_128_SHA256 "AES128-SHA256" 972e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_256_SHA256 "AES256-SHA256" 973e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA256 "DH-DSS-AES128-SHA256" 974e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA256 "DH-RSA-AES128-SHA256" 975e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256 "DHE-DSS-AES128-SHA256" 976e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256 "DHE-RSA-AES128-SHA256" 977e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA256 "DH-DSS-AES256-SHA256" 978e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA256 "DH-RSA-AES256-SHA256" 979e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256 "DHE-DSS-AES256-SHA256" 980e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256 "DHE-RSA-AES256-SHA256" 981e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_AES_128_SHA256 "ADH-AES128-SHA256" 982e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_AES_256_SHA256 "ADH-AES256-SHA256" 983e1051a39Sopenharmony_ci 984e1051a39Sopenharmony_ci/* TLS v1.2 GCM ciphersuites from RFC5288 */ 985e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256 "AES128-GCM-SHA256" 986e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384 "AES256-GCM-SHA384" 987e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256 "DHE-RSA-AES128-GCM-SHA256" 988e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384 "DHE-RSA-AES256-GCM-SHA384" 989e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256 "DH-RSA-AES128-GCM-SHA256" 990e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384 "DH-RSA-AES256-GCM-SHA384" 991e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256 "DHE-DSS-AES128-GCM-SHA256" 992e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384 "DHE-DSS-AES256-GCM-SHA384" 993e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256 "DH-DSS-AES128-GCM-SHA256" 994e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384 "DH-DSS-AES256-GCM-SHA384" 995e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256 "ADH-AES128-GCM-SHA256" 996e1051a39Sopenharmony_ci# define TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384 "ADH-AES256-GCM-SHA384" 997e1051a39Sopenharmony_ci 998e1051a39Sopenharmony_ci/* CCM ciphersuites from RFC6655 */ 999e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_128_CCM "AES128-CCM" 1000e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_256_CCM "AES256-CCM" 1001e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM "DHE-RSA-AES128-CCM" 1002e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM "DHE-RSA-AES256-CCM" 1003e1051a39Sopenharmony_ci 1004e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_128_CCM_8 "AES128-CCM8" 1005e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_AES_256_CCM_8 "AES256-CCM8" 1006e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8 "DHE-RSA-AES128-CCM8" 1007e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8 "DHE-RSA-AES256-CCM8" 1008e1051a39Sopenharmony_ci 1009e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_128_CCM "PSK-AES128-CCM" 1010e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_256_CCM "PSK-AES256-CCM" 1011e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM "DHE-PSK-AES128-CCM" 1012e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM "DHE-PSK-AES256-CCM" 1013e1051a39Sopenharmony_ci 1014e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_128_CCM_8 "PSK-AES128-CCM8" 1015e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_256_CCM_8 "PSK-AES256-CCM8" 1016e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8 "DHE-PSK-AES128-CCM8" 1017e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8 "DHE-PSK-AES256-CCM8" 1018e1051a39Sopenharmony_ci 1019e1051a39Sopenharmony_ci/* CCM ciphersuites from RFC7251 */ 1020e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM "ECDHE-ECDSA-AES128-CCM" 1021e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM "ECDHE-ECDSA-AES256-CCM" 1022e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8 "ECDHE-ECDSA-AES128-CCM8" 1023e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8 "ECDHE-ECDSA-AES256-CCM8" 1024e1051a39Sopenharmony_ci 1025e1051a39Sopenharmony_ci/* ECDH HMAC based ciphersuites from RFC5289 */ 1026e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256 "ECDHE-ECDSA-AES128-SHA256" 1027e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384 "ECDHE-ECDSA-AES256-SHA384" 1028e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256 "ECDH-ECDSA-AES128-SHA256" 1029e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384 "ECDH-ECDSA-AES256-SHA384" 1030e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256 "ECDHE-RSA-AES128-SHA256" 1031e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384 "ECDHE-RSA-AES256-SHA384" 1032e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256 "ECDH-RSA-AES128-SHA256" 1033e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384 "ECDH-RSA-AES256-SHA384" 1034e1051a39Sopenharmony_ci 1035e1051a39Sopenharmony_ci/* ECDH GCM based ciphersuites from RFC5289 */ 1036e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 "ECDHE-ECDSA-AES128-GCM-SHA256" 1037e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 "ECDHE-ECDSA-AES256-GCM-SHA384" 1038e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 "ECDH-ECDSA-AES128-GCM-SHA256" 1039e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 "ECDH-ECDSA-AES256-GCM-SHA384" 1040e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256 "ECDHE-RSA-AES128-GCM-SHA256" 1041e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384 "ECDHE-RSA-AES256-GCM-SHA384" 1042e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256 "ECDH-RSA-AES128-GCM-SHA256" 1043e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384 "ECDH-RSA-AES256-GCM-SHA384" 1044e1051a39Sopenharmony_ci 1045e1051a39Sopenharmony_ci/* TLS v1.2 PSK GCM ciphersuites from RFC5487 */ 1046e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256 "PSK-AES128-GCM-SHA256" 1047e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384 "PSK-AES256-GCM-SHA384" 1048e1051a39Sopenharmony_ci 1049e1051a39Sopenharmony_ci/* ECDHE PSK ciphersuites from RFC 5489 */ 1050e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA "ECDHE-PSK-RC4-SHA" 1051e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA "ECDHE-PSK-3DES-EDE-CBC-SHA" 1052e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA "ECDHE-PSK-AES128-CBC-SHA" 1053e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA "ECDHE-PSK-AES256-CBC-SHA" 1054e1051a39Sopenharmony_ci 1055e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA256 "ECDHE-PSK-AES128-CBC-SHA256" 1056e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA384 "ECDHE-PSK-AES256-CBC-SHA384" 1057e1051a39Sopenharmony_ci 1058e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA "ECDHE-PSK-NULL-SHA" 1059e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA256 "ECDHE-PSK-NULL-SHA256" 1060e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA384 "ECDHE-PSK-NULL-SHA384" 1061e1051a39Sopenharmony_ci 1062e1051a39Sopenharmony_ci/* Camellia-CBC ciphersuites from RFC6367 */ 1063e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-ECDSA-CAMELLIA128-SHA256" 1064e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-ECDSA-CAMELLIA256-SHA384" 1065e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDH-ECDSA-CAMELLIA128-SHA256" 1066e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDH-ECDSA-CAMELLIA256-SHA384" 1067e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDHE-RSA-CAMELLIA128-SHA256" 1068e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDHE-RSA-CAMELLIA256-SHA384" 1069e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 "ECDH-RSA-CAMELLIA128-SHA256" 1070e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 "ECDH-RSA-CAMELLIA256-SHA384" 1071e1051a39Sopenharmony_ci 1072e1051a39Sopenharmony_ci/* draft-ietf-tls-chacha20-poly1305-03 */ 1073e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305 "ECDHE-RSA-CHACHA20-POLY1305" 1074e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305 "ECDHE-ECDSA-CHACHA20-POLY1305" 1075e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_CHACHA20_POLY1305 "DHE-RSA-CHACHA20-POLY1305" 1076e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_CHACHA20_POLY1305 "PSK-CHACHA20-POLY1305" 1077e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305 "ECDHE-PSK-CHACHA20-POLY1305" 1078e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_CHACHA20_POLY1305 "DHE-PSK-CHACHA20-POLY1305" 1079e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_CHACHA20_POLY1305 "RSA-PSK-CHACHA20-POLY1305" 1080e1051a39Sopenharmony_ci 1081e1051a39Sopenharmony_ci/* Aria ciphersuites from RFC6209 */ 1082e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_ARIA_128_GCM_SHA256 "ARIA128-GCM-SHA256" 1083e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_WITH_ARIA_256_GCM_SHA384 "ARIA256-GCM-SHA384" 1084e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_ARIA_128_GCM_SHA256 "DHE-RSA-ARIA128-GCM-SHA256" 1085e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_RSA_WITH_ARIA_256_GCM_SHA384 "DHE-RSA-ARIA256-GCM-SHA384" 1086e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_ARIA_128_GCM_SHA256 "DH-RSA-ARIA128-GCM-SHA256" 1087e1051a39Sopenharmony_ci# define TLS1_TXT_DH_RSA_WITH_ARIA_256_GCM_SHA384 "DH-RSA-ARIA256-GCM-SHA384" 1088e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_ARIA_128_GCM_SHA256 "DHE-DSS-ARIA128-GCM-SHA256" 1089e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_DSS_WITH_ARIA_256_GCM_SHA384 "DHE-DSS-ARIA256-GCM-SHA384" 1090e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_ARIA_128_GCM_SHA256 "DH-DSS-ARIA128-GCM-SHA256" 1091e1051a39Sopenharmony_ci# define TLS1_TXT_DH_DSS_WITH_ARIA_256_GCM_SHA384 "DH-DSS-ARIA256-GCM-SHA384" 1092e1051a39Sopenharmony_ci# define TLS1_TXT_DH_anon_WITH_ARIA_128_GCM_SHA256 "ADH-ARIA128-GCM-SHA256" 1093e1051a39Sopenharmony_ci# define TLS1_TXT_DH_anon_WITH_ARIA_256_GCM_SHA384 "ADH-ARIA256-GCM-SHA384" 1094e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 "ECDHE-ECDSA-ARIA128-GCM-SHA256" 1095e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 "ECDHE-ECDSA-ARIA256-GCM-SHA384" 1096e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 "ECDH-ECDSA-ARIA128-GCM-SHA256" 1097e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 "ECDH-ECDSA-ARIA256-GCM-SHA384" 1098e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 "ECDHE-ARIA128-GCM-SHA256" 1099e1051a39Sopenharmony_ci# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 "ECDHE-ARIA256-GCM-SHA384" 1100e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 "ECDH-ARIA128-GCM-SHA256" 1101e1051a39Sopenharmony_ci# define TLS1_TXT_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 "ECDH-ARIA256-GCM-SHA384" 1102e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_ARIA_128_GCM_SHA256 "PSK-ARIA128-GCM-SHA256" 1103e1051a39Sopenharmony_ci# define TLS1_TXT_PSK_WITH_ARIA_256_GCM_SHA384 "PSK-ARIA256-GCM-SHA384" 1104e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_ARIA_128_GCM_SHA256 "DHE-PSK-ARIA128-GCM-SHA256" 1105e1051a39Sopenharmony_ci# define TLS1_TXT_DHE_PSK_WITH_ARIA_256_GCM_SHA384 "DHE-PSK-ARIA256-GCM-SHA384" 1106e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_ARIA_128_GCM_SHA256 "RSA-PSK-ARIA128-GCM-SHA256" 1107e1051a39Sopenharmony_ci# define TLS1_TXT_RSA_PSK_WITH_ARIA_256_GCM_SHA384 "RSA-PSK-ARIA256-GCM-SHA384" 1108e1051a39Sopenharmony_ci 1109e1051a39Sopenharmony_ci# define TLS_CT_RSA_SIGN 1 1110e1051a39Sopenharmony_ci# define TLS_CT_DSS_SIGN 2 1111e1051a39Sopenharmony_ci# define TLS_CT_RSA_FIXED_DH 3 1112e1051a39Sopenharmony_ci# define TLS_CT_DSS_FIXED_DH 4 1113e1051a39Sopenharmony_ci# define TLS_CT_ECDSA_SIGN 64 1114e1051a39Sopenharmony_ci# define TLS_CT_RSA_FIXED_ECDH 65 1115e1051a39Sopenharmony_ci# define TLS_CT_ECDSA_FIXED_ECDH 66 1116e1051a39Sopenharmony_ci# define TLS_CT_GOST01_SIGN 22 1117e1051a39Sopenharmony_ci# define TLS_CT_GOST12_IANA_SIGN 67 1118e1051a39Sopenharmony_ci# define TLS_CT_GOST12_IANA_512_SIGN 68 1119e1051a39Sopenharmony_ci# define TLS_CT_GOST12_LEGACY_SIGN 238 1120e1051a39Sopenharmony_ci# define TLS_CT_GOST12_LEGACY_512_SIGN 239 1121e1051a39Sopenharmony_ci 1122e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_DEPRECATED_3_0 1123e1051a39Sopenharmony_ci# define TLS_CT_GOST12_SIGN TLS_CT_GOST12_LEGACY_SIGN 1124e1051a39Sopenharmony_ci# define TLS_CT_GOST12_512_SIGN TLS_CT_GOST12_LEGACY_512_SIGN 1125e1051a39Sopenharmony_ci# endif 1126e1051a39Sopenharmony_ci 1127e1051a39Sopenharmony_ci/* 1128e1051a39Sopenharmony_ci * when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see 1129e1051a39Sopenharmony_ci * comment there) 1130e1051a39Sopenharmony_ci */ 1131e1051a39Sopenharmony_ci# define TLS_CT_NUMBER 12 1132e1051a39Sopenharmony_ci 1133e1051a39Sopenharmony_ci# if defined(SSL3_CT_NUMBER) 1134e1051a39Sopenharmony_ci# if TLS_CT_NUMBER != SSL3_CT_NUMBER 1135e1051a39Sopenharmony_ci# error "SSL/TLS CT_NUMBER values do not match" 1136e1051a39Sopenharmony_ci# endif 1137e1051a39Sopenharmony_ci# endif 1138e1051a39Sopenharmony_ci 1139e1051a39Sopenharmony_ci# define TLS1_FINISH_MAC_LENGTH 12 1140e1051a39Sopenharmony_ci 1141e1051a39Sopenharmony_ci# define TLS_MD_MAX_CONST_SIZE 22 1142e1051a39Sopenharmony_ci# define TLS_MD_CLIENT_FINISH_CONST "client finished" 1143e1051a39Sopenharmony_ci# define TLS_MD_CLIENT_FINISH_CONST_SIZE 15 1144e1051a39Sopenharmony_ci# define TLS_MD_SERVER_FINISH_CONST "server finished" 1145e1051a39Sopenharmony_ci# define TLS_MD_SERVER_FINISH_CONST_SIZE 15 1146e1051a39Sopenharmony_ci# define TLS_MD_KEY_EXPANSION_CONST "key expansion" 1147e1051a39Sopenharmony_ci# define TLS_MD_KEY_EXPANSION_CONST_SIZE 13 1148e1051a39Sopenharmony_ci# define TLS_MD_CLIENT_WRITE_KEY_CONST "client write key" 1149e1051a39Sopenharmony_ci# define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE 16 1150e1051a39Sopenharmony_ci# define TLS_MD_SERVER_WRITE_KEY_CONST "server write key" 1151e1051a39Sopenharmony_ci# define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE 16 1152e1051a39Sopenharmony_ci# define TLS_MD_IV_BLOCK_CONST "IV block" 1153e1051a39Sopenharmony_ci# define TLS_MD_IV_BLOCK_CONST_SIZE 8 1154e1051a39Sopenharmony_ci# define TLS_MD_MASTER_SECRET_CONST "master secret" 1155e1051a39Sopenharmony_ci# define TLS_MD_MASTER_SECRET_CONST_SIZE 13 1156e1051a39Sopenharmony_ci# define TLS_MD_EXTENDED_MASTER_SECRET_CONST "extended master secret" 1157e1051a39Sopenharmony_ci# define TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE 22 1158e1051a39Sopenharmony_ci 1159e1051a39Sopenharmony_ci# ifdef CHARSET_EBCDIC 1160e1051a39Sopenharmony_ci# undef TLS_MD_CLIENT_FINISH_CONST 1161e1051a39Sopenharmony_ci/* 1162e1051a39Sopenharmony_ci * client finished 1163e1051a39Sopenharmony_ci */ 1164e1051a39Sopenharmony_ci# define TLS_MD_CLIENT_FINISH_CONST "\x63\x6c\x69\x65\x6e\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64" 1165e1051a39Sopenharmony_ci 1166e1051a39Sopenharmony_ci# undef TLS_MD_SERVER_FINISH_CONST 1167e1051a39Sopenharmony_ci/* 1168e1051a39Sopenharmony_ci * server finished 1169e1051a39Sopenharmony_ci */ 1170e1051a39Sopenharmony_ci# define TLS_MD_SERVER_FINISH_CONST "\x73\x65\x72\x76\x65\x72\x20\x66\x69\x6e\x69\x73\x68\x65\x64" 1171e1051a39Sopenharmony_ci 1172e1051a39Sopenharmony_ci# undef TLS_MD_SERVER_WRITE_KEY_CONST 1173e1051a39Sopenharmony_ci/* 1174e1051a39Sopenharmony_ci * server write key 1175e1051a39Sopenharmony_ci */ 1176e1051a39Sopenharmony_ci# define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79" 1177e1051a39Sopenharmony_ci 1178e1051a39Sopenharmony_ci# undef TLS_MD_KEY_EXPANSION_CONST 1179e1051a39Sopenharmony_ci/* 1180e1051a39Sopenharmony_ci * key expansion 1181e1051a39Sopenharmony_ci */ 1182e1051a39Sopenharmony_ci# define TLS_MD_KEY_EXPANSION_CONST "\x6b\x65\x79\x20\x65\x78\x70\x61\x6e\x73\x69\x6f\x6e" 1183e1051a39Sopenharmony_ci 1184e1051a39Sopenharmony_ci# undef TLS_MD_CLIENT_WRITE_KEY_CONST 1185e1051a39Sopenharmony_ci/* 1186e1051a39Sopenharmony_ci * client write key 1187e1051a39Sopenharmony_ci */ 1188e1051a39Sopenharmony_ci# define TLS_MD_CLIENT_WRITE_KEY_CONST "\x63\x6c\x69\x65\x6e\x74\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79" 1189e1051a39Sopenharmony_ci 1190e1051a39Sopenharmony_ci# undef TLS_MD_SERVER_WRITE_KEY_CONST 1191e1051a39Sopenharmony_ci/* 1192e1051a39Sopenharmony_ci * server write key 1193e1051a39Sopenharmony_ci */ 1194e1051a39Sopenharmony_ci# define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79" 1195e1051a39Sopenharmony_ci 1196e1051a39Sopenharmony_ci# undef TLS_MD_IV_BLOCK_CONST 1197e1051a39Sopenharmony_ci/* 1198e1051a39Sopenharmony_ci * IV block 1199e1051a39Sopenharmony_ci */ 1200e1051a39Sopenharmony_ci# define TLS_MD_IV_BLOCK_CONST "\x49\x56\x20\x62\x6c\x6f\x63\x6b" 1201e1051a39Sopenharmony_ci 1202e1051a39Sopenharmony_ci# undef TLS_MD_MASTER_SECRET_CONST 1203e1051a39Sopenharmony_ci/* 1204e1051a39Sopenharmony_ci * master secret 1205e1051a39Sopenharmony_ci */ 1206e1051a39Sopenharmony_ci# define TLS_MD_MASTER_SECRET_CONST "\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74" 1207e1051a39Sopenharmony_ci# undef TLS_MD_EXTENDED_MASTER_SECRET_CONST 1208e1051a39Sopenharmony_ci/* 1209e1051a39Sopenharmony_ci * extended master secret 1210e1051a39Sopenharmony_ci */ 1211e1051a39Sopenharmony_ci# define TLS_MD_EXTENDED_MASTER_SECRET_CONST "\x65\x78\x74\x65\x6e\x64\x65\x64\x20\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74" 1212e1051a39Sopenharmony_ci# endif 1213e1051a39Sopenharmony_ci 1214e1051a39Sopenharmony_ci/* TLS Session Ticket extension struct */ 1215e1051a39Sopenharmony_cistruct tls_session_ticket_ext_st { 1216e1051a39Sopenharmony_ci unsigned short length; 1217e1051a39Sopenharmony_ci void *data; 1218e1051a39Sopenharmony_ci}; 1219e1051a39Sopenharmony_ci 1220e1051a39Sopenharmony_ci#ifdef __cplusplus 1221e1051a39Sopenharmony_ci} 1222e1051a39Sopenharmony_ci#endif 1223e1051a39Sopenharmony_ci#endif 1224