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 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #ifndef _SSL3_H_ 16 #define _SSL3_H_ 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 # define SSL3_AD_CLOSE_NOTIFY 0 23 # define SSL3_AD_UNEXPECTED_MESSAGE 10/* fatal */ 24 # define SSL3_AD_BAD_RECORD_MAC 20/* fatal */ 25 # define SSL3_AD_DECOMPRESSION_FAILURE 30/* fatal */ 26 # define SSL3_AD_HANDSHAKE_FAILURE 40/* fatal */ 27 # define SSL3_AD_NO_CERTIFICATE 41 28 # define SSL3_AD_BAD_CERTIFICATE 42 29 # define SSL3_AD_UNSUPPORTED_CERTIFICATE 43 30 # define SSL3_AD_CERTIFICATE_REVOKED 44 31 # define SSL3_AD_CERTIFICATE_EXPIRED 45 32 # define SSL3_AD_CERTIFICATE_UNKNOWN 46 33 # define SSL3_AD_ILLEGAL_PARAMETER 47/* fatal */ 34 35 # define SSL3_AL_WARNING 1 36 # define SSL3_AL_FATAL 2 37 38 #define SSL3_VERSION 0x0300 39 40 #ifdef __cplusplus 41 } 42 #endif 43 44 #endif 45