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

genrsa.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/err.h>
#include <openssl/bn.h>
#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/rand.h>

Go to the source code of this file.

Defines

#define DEFBITS   512
#define PROG   genrsa_main

Functions

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


Define Documentation

#define DEFBITS   512
 

Definition at line 81 of file genrsa.c.

#define PROG   genrsa_main
 

Definition at line 83 of file genrsa.c.


Function Documentation

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

Definition at line 287 of file genrsa.c.

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

00288         {
00289         char c='*';
00290 
00291         if (p == 0) c='.';
00292         if (p == 1) c='+';
00293         if (p == 2) c='*';
00294         if (p == 3) c='\n';
00295         BIO_write(cb->arg,&c,1);
00296         (void)BIO_flush(cb->arg);
00297 #ifdef LINT
00298         p=n;
00299 #endif
00300         return 1;
00301         }

int MAIN int  ,
char ** 
 


© sourcejam.com 2005-2008