OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
serv.cpp File Reference
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <memory.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <openssl/rsa.h>
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>

Go to the source code of this file.

Macros

#define HOME   "./"
 
#define CERTF   HOME "foo-cert.pem"
 
#define KEYF   HOME "foo-cert.pem"
 
#define CHK_NULL(x)   if ((x)==NULL) exit (1)
 
#define CHK_ERR(err, s)   if ((err)==-1) { perror(s); exit(1); }
 
#define CHK_SSL(err)   if ((err)==-1) { ERR_print_errors_fp(stderr); exit(2); }
 

Functions

void main ()
 

Macro Definition Documentation

#define CERTF   HOME "foo-cert.pem"

Definition at line 31 of file serv.cpp.

#define CHK_ERR (   err,
 
)    if ((err)==-1) { perror(s); exit(1); }

Definition at line 36 of file serv.cpp.

#define CHK_NULL (   x)    if ((x)==NULL) exit (1)

Definition at line 35 of file serv.cpp.

#define CHK_SSL (   err)    if ((err)==-1) { ERR_print_errors_fp(stderr); exit(2); }

Definition at line 37 of file serv.cpp.

#define HOME   "./"

Definition at line 29 of file serv.cpp.

#define KEYF   HOME "foo-cert.pem"

Definition at line 32 of file serv.cpp.

Function Documentation

void main ( void  )

Definition at line 39 of file serv.cpp.