FreeRDP
makecert.c File Reference
#include <errno.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/cmdline.h>
#include <winpr/sysinfo.h>
#include <winpr/crypto.h>
#include <winpr/tools/makecert.h>

Functions

static int makecert_print_command_line_help (int argc, char **argv)
 
static char * x509_name_parse (char *name, char *txt, int *length)
 
static char * x509_get_default_name (void)
 
static int command_line_pre_filter (MAKECERT_CONTEXT *context, int index, int argc, LPCSTR *argv)
 
static int makecert_context_parse_arguments (MAKECERT_CONTEXT *context, int argc, char **argv)
 
int makecert_context_set_output_file_name (MAKECERT_CONTEXT *context, char *name)
 
int makecert_context_output_certificate_file (MAKECERT_CONTEXT *context, char *path)
 
int makecert_context_output_private_key_file (MAKECERT_CONTEXT *context, char *path)
 
int makecert_context_process (MAKECERT_CONTEXT *context, int argc, char **argv)
 
MAKECERT_CONTEXT * makecert_context_new (void)
 
void makecert_context_free (MAKECERT_CONTEXT *context)
 

Variables

static COMMAND_LINE_ARGUMENT_A args []
 

Function Documentation

static int command_line_pre_filter ( MAKECERT_CONTEXT *  context,
int  index,
int  argc,
LPCSTR *  argv 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void makecert_context_free ( MAKECERT_CONTEXT *  context)

Here is the caller graph for this function:

MAKECERT_CONTEXT* makecert_context_new ( void  )

Here is the caller graph for this function:

int makecert_context_output_certificate_file ( MAKECERT_CONTEXT *  context,
char *  path 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int makecert_context_output_private_key_file ( MAKECERT_CONTEXT *  context,
char *  path 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static int makecert_context_parse_arguments ( MAKECERT_CONTEXT *  context,
int  argc,
char **  argv 
)
static

makecert -r -pe -n "CN=%COMPUTERNAME%" -eku 1.3.6.1.5.5.7.3.1 -ss my -sr LocalMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12

Here is the call graph for this function:

Here is the caller graph for this function:

int makecert_context_process ( MAKECERT_CONTEXT *  context,
int  argc,
char **  argv 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int makecert_context_set_output_file_name ( MAKECERT_CONTEXT *  context,
char *  name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static int makecert_print_command_line_help ( int  argc,
char **  argv 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static char* x509_get_default_name ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static char* x509_name_parse ( char *  name,
char *  txt,
int *  length 
)
static

Here is the caller graph for this function:

Variable Documentation

COMMAND_LINE_ARGUMENT_A args[]
static