#include <string.h>
#include <stdio.h>
#include "xyssl/net.h"
#include "xyssl/ssl.h"
#include "xyssl/havege.h"
#include "xyssl/certs.h"
#include "xyssl/x509.h"
Go to the source code of this file.
Defines | |
#define | SERVER_PORT 443 |
#define | SERVER_NAME "xyssl.org" |
#define | GET_REQUEST |
#define | DEBUG_LEVEL 0 |
Functions | |
void | my_debug (void *ctx, int level, char *str) |
int | main (void) |
#define DEBUG_LEVEL 0 |
Definition at line 44 of file ssl_client2.c.
#define GET_REQUEST |
"GET /hello/ HTTP/1.1\r\n" \ "Host: xyssl.org\r\n\r\n"
Definition at line 40 of file ssl_client2.c.
#define SERVER_NAME "xyssl.org" |
Definition at line 39 of file ssl_client2.c.
#define SERVER_PORT 443 |
Definition at line 34 of file ssl_client2.c.
int main | ( | void | ) |
Definition at line 55 of file ssl_client2.c.
References BADCERT_CN_MISMATCH, BADCERT_EXPIRED, BADCERT_NOT_TRUSTED, BADCERT_REVOKED, buf, GET_REQUEST, havege_init(), havege_rand(), net_close(), net_connect(), net_recv(), net_send(), _ssl_context::peer_cert, rsa_free(), server_fd, SERVER_NAME, SERVER_PORT, ssl_close_notify(), ssl_default_ciphers, ssl_free(), ssl_get_cipher(), ssl_get_verify_result(), ssl_handshake(), ssl_init(), SSL_IS_CLIENT, ssl_read(), ssl_set_authmode(), ssl_set_bio(), ssl_set_ca_chain(), ssl_set_ciphers(), ssl_set_endpoint(), ssl_set_hostname(), ssl_set_own_cert(), ssl_set_rng(), ssl_set_session(), SSL_VERIFY_OPTIONAL, ssl_write(), test_cli_crt, test_cli_key, x509_free(), x509parse_cert_info(), x509parse_crt(), x509parse_key(), xyssl_ca_crt, XYSSL_ERR_NET_TRY_AGAIN, and XYSSL_ERR_SSL_PEER_CLOSE_NOTIFY.
void my_debug | ( | void * | ctx, | |
int | level, | |||
char * | str | |||
) |
Definition at line 46 of file ssl_client2.c.
References DEBUG_LEVEL.