Embed:
(wiki syntax)
Show/hide line numbers
tls_server.h
Go to the documentation of this file.
00001 /** 00002 * @file tls_server.h 00003 * @brief Handshake message processing (TLS server) 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_SERVER_H 00030 #define _TLS_SERVER_H 00031 00032 //Dependencies 00033 #include "tls.h" 00034 00035 //TLS server specific functions 00036 error_t tlsServerHandshake(TlsContext *context); 00037 error_t tlsParseClientMessage(TlsContext *context); 00038 00039 error_t tlsSendServerHello(TlsContext *context); 00040 error_t tlsSendServerKeyExchange(TlsContext *context); 00041 error_t tlsSendCertificateRequest(TlsContext *context); 00042 error_t tlsSendServerHelloDone(TlsContext *context); 00043 00044 error_t tlsFormatServerHello(TlsContext *context, 00045 TlsServerHello *message, size_t *length); 00046 00047 error_t tlsFormatServerKeyExchange(TlsContext *context, 00048 TlsServerKeyExchange *message, size_t *length); 00049 00050 error_t tlsFormatCertificateRequest(TlsContext *context, 00051 TlsCertificateRequest *message, size_t *length); 00052 00053 error_t tlsFormatServerHelloDone(TlsContext *context, 00054 TlsServerHelloDone *message, size_t *length); 00055 00056 error_t tlsParseClientHello(TlsContext *context, 00057 const TlsClientHello *message, size_t length); 00058 00059 error_t tlsParseClientKeyExchange(TlsContext *context, 00060 const TlsClientKeyExchange *message, size_t length); 00061 00062 error_t tlsParseCertificateVerify(TlsContext *context, 00063 const TlsCertificateVerify *message, size_t length); 00064 00065 #endif 00066
Generated on Tue Jul 12 2022 17:10:17 by
