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

dhparam.c File Reference

#include <openssl/opensslconf.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "apps.h"
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/dh.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/dsa.h>

Go to the source code of this file.

Defines

#define PROG   dhparam_main
#define DEFBITS   512

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 133 of file dhparam.c.

#define PROG   dhparam_main
 

Definition at line 131 of file dhparam.c.


Function Documentation

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

Definition at line 541 of file dhparam.c.

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

00542         {
00543         char c='*';
00544 
00545         if (p == 0) c='.';
00546         if (p == 1) c='+';
00547         if (p == 2) c='*';
00548         if (p == 3) c='\n';
00549         BIO_write(cb->arg,&c,1);
00550         (void)BIO_flush(cb->arg);
00551 #ifdef LINT
00552         p=n;
00553 #endif
00554         return 1;
00555         }

int MAIN int  ,
char ** 
 


© sourcejam.com 2005-2008