This is very much still work in progress and much more will change before the final 2.0.0 Some APIs have changed. New libraries have been added. LittleFS included. Co-authored-by: Seon Rozenblum <seonr@3sprockets.com> Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> Co-authored-by: geeksville <kevinh@geeksville.com> Co-authored-by: Mike Dunston <m_dunston@comcast.net> Co-authored-by: Unexpected Maker <seon@unexpectedmaker.com> Co-authored-by: Seon Rozenblum <seonr@3sprockets.com> Co-authored-by: microDev <70126934+microDev1@users.noreply.github.com> Co-authored-by: tobozo <tobozo@users.noreply.github.com> Co-authored-by: bobobo1618 <bobobo1618@users.noreply.github.com> Co-authored-by: lorol <lorolouis@gmail.com> Co-authored-by: geeksville <kevinh@geeksville.com> Co-authored-by: Limor "Ladyada" Fried <limor@ladyada.net> Co-authored-by: Sweety <switi.mhaiske@espressif.com> Co-authored-by: Loick MAHIEUX <loick111@gmail.com> Co-authored-by: Larry Bernstone <lbernstone@gmail.com> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com> Co-authored-by: 快乐的我531 <2302004040@qq.com> Co-authored-by: chegewara <imperiaonline4@gmail.com> Co-authored-by: Clemens Kirchgatterer <clemens@1541.org> Co-authored-by: Aron Rubin <aronrubin@gmail.com> Co-authored-by: Pete Lewis <601236+lewispg228@users.noreply.github.com>
56 lines
2.0 KiB
C
56 lines
2.0 KiB
C
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef _TLS1_H_
|
|
#define _TLS1_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
# define TLS1_AD_DECRYPTION_FAILED 21
|
|
# define TLS1_AD_RECORD_OVERFLOW 22
|
|
# define TLS1_AD_UNKNOWN_CA 48/* fatal */
|
|
# define TLS1_AD_ACCESS_DENIED 49/* fatal */
|
|
# define TLS1_AD_DECODE_ERROR 50/* fatal */
|
|
# define TLS1_AD_DECRYPT_ERROR 51
|
|
# define TLS1_AD_EXPORT_RESTRICTION 60/* fatal */
|
|
# define TLS1_AD_PROTOCOL_VERSION 70/* fatal */
|
|
# define TLS1_AD_INSUFFICIENT_SECURITY 71/* fatal */
|
|
# define TLS1_AD_INTERNAL_ERROR 80/* fatal */
|
|
# define TLS1_AD_INAPPROPRIATE_FALLBACK 86/* fatal */
|
|
# define TLS1_AD_USER_CANCELLED 90
|
|
# define TLS1_AD_NO_RENEGOTIATION 100
|
|
/* codes 110-114 are from RFC3546 */
|
|
# define TLS1_AD_UNSUPPORTED_EXTENSION 110
|
|
# define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111
|
|
# define TLS1_AD_UNRECOGNIZED_NAME 112
|
|
# define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113
|
|
# define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114
|
|
# define TLS1_AD_UNKNOWN_PSK_IDENTITY 115/* fatal */
|
|
# define TLS1_AD_NO_APPLICATION_PROTOCOL 120 /* fatal */
|
|
|
|
/* Special value for method supporting multiple versions */
|
|
#define TLS_ANY_VERSION 0x10000
|
|
|
|
#define TLS1_VERSION 0x0301
|
|
#define TLS1_1_VERSION 0x0302
|
|
#define TLS1_2_VERSION 0x0303
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|