Main Page | Class List | Directories | File List | Class Members | File Members

gendh.c File Reference

#include <openssl/opensslconf.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "apps.h"
#include <openssl/bio.h>
#include <openssl/rand.h>
#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/dh.h>
#include <openssl/x509.h>
#include <openssl/pem.h>

Go to the source code of this file.

Defines

#define DEFBITS   512
#define PROG   gendh_main

Functions

static int MS_CALLBACK dh_cb (int p, int n, BN_GENCB *cb)
int MAIN (int, char **)


Define Documentation

#define DEFBITS   512
 

Definition at line 81 of file gendh.c.

#define PROG   gendh_main
 

Definition at line 83 of file gendh.c.


Function Documentation

static int MS_CALLBACK dh_cb int  p,
int  n,
BN_GENCB cb
[static]
 

Definition at line 223 of file gendh.c.

References bn_gencb_st::arg, BIO_flush, BIO_write(), c, and void().

00224         {
00225         char c='*';
00226 
00227         if (p == 0) c='.';
00228         if (p == 1) c='+';
00229         if (p == 2) c='*';
00230         if (p == 3) c='\n';
00231         BIO_write(cb->arg,&c,1);
00232         (void)BIO_flush(cb->arg);
00233 #ifdef LINT
00234         p=n;
00235 #endif
00236         return 1;
00237         }

int MAIN int  ,
char ** 
 


© sourcejam.com 2005-2008