Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MiniTLS-GPL by
tls/minitls.c
- Committer:
- MiniTLS
- Date:
- 2014-06-10
- Revision:
- 4:cbaf466d717d
- Parent:
- 1:27b41ba7e847
File content as of revision 4:cbaf466d717d:
/*
MiniTLS - A super trimmed down TLS/SSL Library for embedded devices
Author: Donatien Garnier
Copyright (C) 2013-2014 AppNearMe Ltd
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*//**
* \file minitls.c
* \copyright Copyright (c) AppNearMe Ltd 2013
* \author Donatien Garnier
*/
#include "core/fwk.h"
#include "inc/minitls_errors.h"
#include "minitls.h"
/* This implementation assumes the following:
*
* Cipher suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
* Compression: None
*/
minitls_err_t minitls_init(minitls_t* minitls, crypto_prng_t* prng)
{
minitls->certificate = NULL;
minitls->prng = prng;
return MINITLS_OK;
}
minitls_err_t minitls_certificate_add(minitls_t* minitls, const tls_x509_certificate_t* cert)
{
minitls->certificate = cert;
return MINITLS_OK;
}
