OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
example1.c File Reference
#include <unistd.h>
#include <stdio.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <strings.h>
#include <stdlib.h>
#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include "loadkeys.h"

Go to the source code of this file.

Macros

#define PUBFILE   "cert.pem"
 
#define PRIVFILE   "privkey.pem"
 
#define STDIN   0
 
#define STDOUT   1
 

Functions

void main_encrypt (void)
 
void main_decrypt (void)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define PRIVFILE   "privkey.pem"

Definition at line 27 of file example1.c.

#define PUBFILE   "cert.pem"

Definition at line 26 of file example1.c.

#define STDIN   0

Definition at line 29 of file example1.c.

#define STDOUT   1

Definition at line 30 of file example1.c.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 37 of file example1.c.

void main_decrypt ( void  )

Definition at line 127 of file example1.c.

void main_encrypt ( void  )

Definition at line 59 of file example1.c.