OpenSSL ECC Engine  1.0
OpenSSL Engine implementation using ATECC508 for ECC key storage and ECDSA, ECDH, and RNG.
Functions
server-tls2.c File Reference

The server portion of the TLS1.2 client/server exchange utility. For details see https://wiki.openssl.org/index.php/Simple_TLS_Server. More...

#include "tlsutil.h"

Functions

int connect_server (const char *engine_id, const char *ca_path, const char *chain_file, const char *cert_file, const char *key_file, const char *ip_address, uint16_t port_number)
 A complete procedure of connecting server using TLS-1.2 protocol over TCP/IP. More...
 

Detailed Description

The server portion of the TLS1.2 client/server exchange utility. For details see https://wiki.openssl.org/index.php/Simple_TLS_Server.

Copyright (c) 2015 Atmel Corporation. All rights reserved.

Function Documentation

int connect_server ( const char *  engine_id,
const char *  ca_path,
const char *  chain_file,
const char *  cert_file,
const char *  key_file,
const char *  ip_address,
uint16_t  port_number 
)

A complete procedure of connecting server using TLS-1.2 protocol over TCP/IP.

Parameters
[in]engine_idEngine ID (use Software libraries if NULL)
[in]ca_pathPath to CA (Certificate Authority)
[in]chain_fileChain File Name (Certificate Bundle)
[in]cert_fileCertificate File Name
[in]key_filePrivate Key File Name
[in]ip_addressThe server IP address
[in]ip_addressThe server port number
Returns
0 for success