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

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

#include "tlsutil.h"

Functions

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

Detailed Description

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

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

Function Documentation

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

A complete procedure of connecting client 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]cipher_listCipher list string (ECDH-ECDSA-AES128-SHA256, ECDH-ECDSA-AES128-GCM-SHA256, etc) - Must be SHA-256 for ECC508
[in]ip_addressThe server IP address
[in]ip_addressThe server port number
Returns
0 for success