ssl3.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #ifndef _SSL3_H_
  14. #define _SSL3_H_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. # define SSL3_AD_CLOSE_NOTIFY 0
  19. # define SSL3_AD_UNEXPECTED_MESSAGE 10/* fatal */
  20. # define SSL3_AD_BAD_RECORD_MAC 20/* fatal */
  21. # define SSL3_AD_DECOMPRESSION_FAILURE 30/* fatal */
  22. # define SSL3_AD_HANDSHAKE_FAILURE 40/* fatal */
  23. # define SSL3_AD_NO_CERTIFICATE 41
  24. # define SSL3_AD_BAD_CERTIFICATE 42
  25. # define SSL3_AD_UNSUPPORTED_CERTIFICATE 43
  26. # define SSL3_AD_CERTIFICATE_REVOKED 44
  27. # define SSL3_AD_CERTIFICATE_EXPIRED 45
  28. # define SSL3_AD_CERTIFICATE_UNKNOWN 46
  29. # define SSL3_AD_ILLEGAL_PARAMETER 47/* fatal */
  30. # define SSL3_AL_WARNING 1
  31. # define SSL3_AL_FATAL 2
  32. #define SSL3_VERSION 0x0300
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif