#include <string.h>
#include <stdio.h>
#include "xyssl/net.h"
#include "xyssl/ssl.h"
#include "xyssl/havege.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 42 of file ssl_client1.c.
Referenced by my_debug().
#define GET_REQUEST |
"GET /hello/ HTTP/1.1\r\n" \ "Host: xyssl.org\r\n\r\n"
Definition at line 38 of file ssl_client1.c.
Referenced by main().
#define SERVER_NAME "xyssl.org" |
Definition at line 37 of file ssl_client1.c.
#define SERVER_PORT 443 |
Definition at line 32 of file ssl_client1.c.
int main | ( | void | ) |
Definition at line 53 of file ssl_client1.c.
References buf, GET_REQUEST, havege_init(), havege_rand(), my_debug(), net_close(), net_connect(), net_recv(), net_send(), server_fd, SERVER_NAME, SERVER_PORT, ssl_close_notify(), ssl_default_ciphers, ssl_free(), ssl_init(), SSL_IS_CLIENT, ssl_read(), ssl_set_authmode(), ssl_set_bio(), ssl_set_ciphers(), ssl_set_dbg(), ssl_set_endpoint(), ssl_set_rng(), ssl_set_session(), SSL_VERIFY_NONE, ssl_write(), XYSSL_ERR_NET_TRY_AGAIN, and XYSSL_ERR_SSL_PEER_CLOSE_NOTIFY.
void my_debug | ( | void * | ctx, | |
int | level, | |||
char * | str | |||
) |
Definition at line 44 of file ssl_client1.c.
References DEBUG_LEVEL.
Referenced by main(), and ssl_test().