|
12 | 12 | static const long Cryptography_HAS_SSL_ST;
|
13 | 13 | static const long Cryptography_HAS_TLS_ST;
|
14 | 14 | static const long Cryptography_HAS_TLSv1_3_FUNCTIONS;
|
| 15 | +static const long Cryptography_HAS_TLSv1_3_HS_FUNCTIONS; |
15 | 16 | static const long Cryptography_HAS_SIGALGS;
|
16 | 17 | static const long Cryptography_HAS_PSK;
|
17 | 18 | static const long Cryptography_HAS_PSK_TLSv1_3;
|
|
477 | 478 |
|
478 | 479 | /* in OpenSSL 1.1.0 the SSL_ST values were renamed to TLS_ST and several were
|
479 | 480 | removed */
|
480 |
| -#if CRYPTOGRAPHY_IS_LIBRESSL || CRYPTOGRAPHY_IS_BORINGSSL |
| 481 | +#if CRYPTOGRAPHY_IS_LIBRESSL || CRYPTOGRAPHY_IS_BORINGSSL \ |
| 482 | + || CRYPTOGRAPHY_IS_AWSLC |
481 | 483 | static const long Cryptography_HAS_SSL_ST = 1;
|
482 | 484 | #else
|
483 | 485 | static const long Cryptography_HAS_SSL_ST = 0;
|
|
494 | 496 | static const long TLS_ST_OK = 0;
|
495 | 497 | #endif
|
496 | 498 |
|
497 |
| -#if CRYPTOGRAPHY_IS_LIBRESSL || CRYPTOGRAPHY_IS_BORINGSSL |
| 499 | +#if CRYPTOGRAPHY_IS_LIBRESSL || CRYPTOGRAPHY_IS_BORINGSSL \ |
| 500 | + || CRYPTOGRAPHY_IS_AWSLC |
498 | 501 | static const long Cryptography_HAS_DTLS_GET_DATA_MTU = 0;
|
499 | 502 | size_t (*DTLS_get_data_mtu)(SSL *) = NULL;
|
500 | 503 | #else
|
|
589 | 592 |
|
590 | 593 | #if CRYPTOGRAPHY_IS_BORINGSSL
|
591 | 594 | static const long Cryptography_HAS_TLSv1_3_FUNCTIONS = 0;
|
| 595 | +int (*SSL_CTX_set_ciphersuites)(SSL_CTX *, const char *) = NULL; |
| 596 | +#else |
| 597 | +static const long Cryptography_HAS_TLSv1_3_FUNCTIONS = 1; |
| 598 | +#endif |
592 | 599 |
|
| 600 | +#if CRYPTOGRAPHY_IS_BORINGSSL || CRYPTOGRAPHY_IS_AWSLC |
| 601 | +static const long Cryptography_HAS_TLSv1_3_HS_FUNCTIONS = 0; |
593 | 602 | static const long SSL_VERIFY_POST_HANDSHAKE = 0;
|
594 |
| -int (*SSL_CTX_set_ciphersuites)(SSL_CTX *, const char *) = NULL; |
| 603 | +
|
595 | 604 | int (*SSL_verify_client_post_handshake)(SSL *) = NULL;
|
596 | 605 | void (*SSL_CTX_set_post_handshake_auth)(SSL_CTX *, int) = NULL;
|
597 | 606 | void (*SSL_set_post_handshake_auth)(SSL *, int) = NULL;
|
|
600 | 609 | int (*SSL_read_early_data)(SSL *, void *, size_t, size_t *) = NULL;
|
601 | 610 | int (*SSL_CTX_set_max_early_data)(SSL_CTX *, uint32_t) = NULL;
|
602 | 611 | #else
|
603 |
| -static const long Cryptography_HAS_TLSv1_3_FUNCTIONS = 1; |
| 612 | +static const long Cryptography_HAS_TLSv1_3_HS_FUNCTIONS = 1; |
604 | 613 | #endif
|
605 | 614 |
|
606 |
| -#if CRYPTOGRAPHY_IS_BORINGSSL |
| 615 | +#if CRYPTOGRAPHY_IS_BORINGSSL || CRYPTOGRAPHY_IS_AWSLC |
607 | 616 | static const long Cryptography_HAS_SSL_COOKIE = 0;
|
608 | 617 |
|
609 | 618 | static const long SSL_OP_COOKIE_EXCHANGE = 0;
|
|
623 | 632 | #else
|
624 | 633 | static const long Cryptography_HAS_SSL_COOKIE = 1;
|
625 | 634 | #endif
|
626 |
| -#if CRYPTOGRAPHY_IS_LIBRESSL || CRYPTOGRAPHY_IS_BORINGSSL |
| 635 | +#if CRYPTOGRAPHY_IS_LIBRESSL || CRYPTOGRAPHY_IS_BORINGSSL \ |
| 636 | + || CRYPTOGRAPHY_IS_AWSLC |
627 | 637 | static const long Cryptography_HAS_PSK_TLSv1_3 = 0;
|
628 | 638 | void (*SSL_CTX_set_psk_find_session_callback)(SSL_CTX *,
|
629 | 639 | int (*)(
|
|
646 | 656 | int (*SSL_SESSION_set1_master_key)(SSL_SESSION *, const unsigned char *,
|
647 | 657 | size_t) = NULL;
|
648 | 658 | int (*SSL_SESSION_set_cipher)(SSL_SESSION *, const SSL_CIPHER *) = NULL;
|
649 |
| -#if !CRYPTOGRAPHY_IS_BORINGSSL |
| 659 | +#if !CRYPTOGRAPHY_IS_BORINGSSL && !CRYPTOGRAPHY_IS_AWSLC |
650 | 660 | int (*SSL_SESSION_set_protocol_version)(SSL_SESSION *, int) = NULL;
|
651 | 661 | #endif
|
652 | 662 | SSL_SESSION *(*Cryptography_SSL_SESSION_new)(void) = NULL;
|
|
0 commit comments