#include <string.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 | _CRT_SECURE_NO_DEPRECATE 1 |
#define | HTTP_RESPONSE |
Functions | |
int | main (void) |
Variables | |
char * | dhm_P |
char * | dhm_G = "4" |
unsigned char | session_table [SSL_SESSION_TBL_LEN] |
int | my_preferred_ciphers [] |
#define _CRT_SECURE_NO_DEPRECATE 1 |
Definition at line 22 of file ssl_server.c.
#define HTTP_RESPONSE |
Value:
"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 38 of file ssl_server.c.
Referenced by main().
int main | ( | void | ) |
Definition at line 75 of file ssl_server.c.
References client_fd, dhm_G, dhm_P, ERR_NET_CONN_RESET, ERR_SSL_PEER_CLOSE_NOTIFY, havege_init(), havege_rand(), HTTP_RESPONSE, my_preferred_ciphers, net_accept(), net_bind(), net_close(), _x509_cert::next, rsa_free(), session_table, ssl_close_notify(), ssl_free(), ssl_get_cipher_name(), ssl_init(), SSL_IS_SERVER, ssl_read(), ssl_server_start(), ssl_set_authmode(), ssl_set_ca_chain(), ssl_set_ciphlist(), ssl_set_dhm_vals(), ssl_set_endpoint(), ssl_set_io_files(), ssl_set_rng_func(), ssl_set_rsa_cert(), ssl_set_sidtable(), SSL_VERIFY_NONE, ssl_write(), test_ca_crt, test_srv_crt, test_srv_key, x509_add_certs(), x509_free_cert(), and x509_parse_key().
char* dhm_G = "4" |
char* dhm_P |
Initial value:
"E4004C1F94182000103D883A448B3F80" "2CE4B44A83301270002C20D0321CFD00" "11CCEF784C26A400F43DFB901BCA7538" "F2C6B176001CF5A0FD16D2C48B1D0C1C" "F6AC8E1DA6BCC3B4E1F96B0564965300" "FFA1D0B601EB2800F489AA512C4B248C" "01F76949A60BB7F00A40B1EAB64BDD48" "E8A700D60B7F1200FA8E77B0A979DABF"
Definition at line 47 of file ssl_server.c.
Referenced by main().
Initial value:
{ TLS1_EDH_RSA_AES_256_SHA, SSL3_EDH_RSA_DES_168_SHA, TLS1_RSA_AES_256_SHA, SSL3_RSA_DES_168_SHA, SSL3_RSA_RC4_128_SHA, SSL3_RSA_RC4_128_MD5, 0 }
Definition at line 64 of file ssl_server.c.
Referenced by main().
unsigned char session_table[SSL_SESSION_TBL_LEN] |