prov_ssl.h 981 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OPENSSL_PROV_SSL_H
  10. # define OPENSSL_PROV_SSL_H
  11. # pragma once
  12. # ifdef __cplusplus
  13. extern "C" {
  14. # endif
  15. /* SSL/TLS related defines useful to providers */
  16. # define SSL_MAX_MASTER_KEY_LENGTH 48
  17. # define SSL3_VERSION 0x0300
  18. # define TLS1_VERSION 0x0301
  19. # define TLS1_1_VERSION 0x0302
  20. # define TLS1_2_VERSION 0x0303
  21. # define TLS1_3_VERSION 0x0304
  22. # define DTLS1_VERSION 0xFEFF
  23. # define DTLS1_2_VERSION 0xFEFD
  24. # define DTLS1_BAD_VER 0x0100
  25. # ifdef __cplusplus
  26. }
  27. # endif
  28. #endif /* OPENSSL_PROV_SSL_H */