#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "xyssl/havege.h"
#include "xyssl/certs.h"
#include "xyssl/x509.h"
#include "xyssl/ssl.h"
#include "xyssl/net.h"
Go to the source code of this file.
Defines | |
#define | HTTP_RESPONSE |
#define | DEBUG_LEVEL 0 |
Functions | |
void | my_debug (void *ctx, int level, char *str) |
static int | my_get_session (ssl_context *ssl) |
static int | my_set_session (ssl_context *ssl) |
int | main (void) |
Variables | |
char * | my_dhm_P |
char * | my_dhm_G = "4" |
int | my_ciphers [] |
ssl_session * | s_list_1st = NULL |
ssl_session * | cur |
ssl_session * | prv |
#define DEBUG_LEVEL 0 |
Definition at line 75 of file ssl_server.c.
#define HTTP_RESPONSE |
"HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" \ "<h2><p><center>Successful connection using: %s\r\n"
Definition at line 39 of file ssl_server.c.
Referenced by http_ParseRequest(), main(), and mtp_http_Parse().
int main | ( | void | ) |
Definition at line 160 of file ssl_server.c.
References buf, client_fd, havege_init(), havege_rand(), HTTP_RESPONSE, my_ciphers, my_debug(), my_dhm_G, my_dhm_P, my_get_session(), my_set_session(), net_accept(), net_bind(), net_close(), net_recv(), net_send(), _ssl_session::next, _x509_cert::next, rsa_free(), ssl_close_notify(), ssl_free(), ssl_get_cipher(), ssl_handshake(), ssl_init(), SSL_IS_SERVER, ssl_read(), ssl_set_authmode(), ssl_set_bio(), ssl_set_ca_chain(), ssl_set_ciphers(), ssl_set_dbg(), ssl_set_dh_param(), ssl_set_endpoint(), ssl_set_own_cert(), ssl_set_rng(), ssl_set_scb(), ssl_set_session(), SSL_VERIFY_NONE, ssl_write(), test_ca_crt, test_srv_crt, test_srv_key, x509_free(), x509parse_crt(), x509parse_key(), XYSSL_ERR_NET_CONN_RESET, XYSSL_ERR_NET_TRY_AGAIN, and XYSSL_ERR_SSL_PEER_CLOSE_NOTIFY.
void my_debug | ( | void * | ctx, | |
int | level, | |||
char * | str | |||
) |
Definition at line 77 of file ssl_server.c.
References DEBUG_LEVEL.
static int my_get_session | ( | ssl_context * | ssl | ) | [static] |
Definition at line 93 of file ssl_server.c.
References _ssl_session::cipher, _ssl_session::id, _ssl_session::length, _ssl_session::master, _ssl_session::next, _ssl_context::resume, _ssl_context::session, _ssl_session::start, and _ssl_context::timeout.
Referenced by main().
static int my_set_session | ( | ssl_context * | ssl | ) | [static] |
Definition at line 125 of file ssl_server.c.
References _ssl_session::id, _ssl_session::length, _ssl_session::next, _ssl_context::session, _ssl_session::start, and _ssl_context::timeout.
Referenced by main().
Definition at line 91 of file ssl_server.c.
Referenced by http_GetToken(), http_ParseRequest(), and x509parse_verify().
{ SSL_EDH_RSA_AES_256_SHA, SSL_EDH_RSA_DES_168_SHA, SSL_RSA_AES_256_SHA, SSL_RSA_AES_128_SHA, SSL_RSA_DES_168_SHA, SSL_RSA_RC4_128_SHA, SSL_RSA_RC4_128_MD5, 0 }
Definition at line 63 of file ssl_server.c.
Referenced by main().
char* my_dhm_G = "4" |
Definition at line 58 of file ssl_server.c.
Referenced by main().
char* my_dhm_P |
"E4004C1F94182000103D883A448B3F80" "2CE4B44A83301270002C20D0321CFD00" "11CCEF784C26A400F43DFB901BCA7538" "F2C6B176001CF5A0FD16D2C48B1D0C1C" "F6AC8E1DA6BCC3B4E1F96B0564965300" "FFA1D0B601EB2800F489AA512C4B248C" "01F76949A60BB7F00A40B1EAB64BDD48" "E8A700D60B7F1200FA8E77B0A979DABF"
Definition at line 48 of file ssl_server.c.
Referenced by main().
Definition at line 91 of file ssl_server.c.
Referenced by aes_self_test(), and des_self_test().
ssl_session* s_list_1st = NULL |
Definition at line 90 of file ssl_server.c.