Embed:
(wiki syntax)
Show/hide line numbers
tls_client.h
Go to the documentation of this file.
00001 /** 00002 * @file tls_client.h 00003 * @brief Handshake message processing (TLS client) 00004 * 00005 * @section License 00006 * 00007 * Copyright (C) 2010-2017 Oryx Embedded SARL. All rights reserved. 00008 * 00009 * This file is part of CycloneSSL Open. 00010 * 00011 * This program is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public License 00013 * as published by the Free Software Foundation; either version 2 00014 * of the License, or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software Foundation, 00023 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00024 * 00025 * @author Oryx Embedded SARL (www.oryx-embedded.com) 00026 * @version 1.7.6 00027 **/ 00028 00029 #ifndef _TLS_CLIENT_H 00030 #define _TLS_CLIENT_H 00031 00032 //Dependencies 00033 #include "tls.h" 00034 00035 //TLS client specific functions 00036 error_t tlsClientHandshake(TlsContext *context); 00037 error_t tlsParseServerMessage(TlsContext *context); 00038 00039 error_t tlsSendClientHello(TlsContext *context); 00040 error_t tlsSendClientKeyExchange(TlsContext *context); 00041 error_t tlsSendCertificateVerify(TlsContext *context); 00042 00043 error_t tlsFormatClientHello(TlsContext *context, 00044 TlsClientHello *message, size_t *length); 00045 00046 error_t tlsFormatClientKeyExchange(TlsContext *context, 00047 TlsClientKeyExchange *message, size_t *length); 00048 00049 error_t tlsFormatCertificateVerify(TlsContext *context, 00050 TlsCertificateVerify *message, size_t *length); 00051 00052 error_t tlsParseServerHello(TlsContext *context, 00053 const TlsServerHello *message, size_t length); 00054 00055 error_t tlsParseServerKeyExchange(TlsContext *context, 00056 const TlsServerKeyExchange *message, size_t length); 00057 00058 error_t tlsParseCertificateRequest(TlsContext *context, 00059 const TlsCertificateRequest *message, size_t length); 00060 00061 error_t tlsParseServerHelloDone(TlsContext *context, 00062 const TlsServerHelloDone *message, size_t length); 00063 00064 #endif 00065
Generated on Tue Jul 12 2022 17:10:17 by
