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