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

Functions

static char * makecert_read_str (BIO *bio, size_t *pOffset)
 
static int makecert_print_command_line_help (COMMAND_LINE_ARGUMENT_A *args, int argc, char **argv)
 
static char * x509_name_parse (char *name, char *txt, size_t *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, COMMAND_LINE_ARGUMENT_A *args, int argc, char **argv)
 
int makecert_context_set_output_file_name (MAKECERT_CONTEXT *context, const char *name)
 
int makecert_context_output_certificate_file (MAKECERT_CONTEXT *context, const char *path)
 
int makecert_context_output_private_key_file (MAKECERT_CONTEXT *context, const 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)
 

Function Documentation

◆ command_line_pre_filter()

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:

◆ makecert_context_free()

void makecert_context_free ( MAKECERT_CONTEXT *  context)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makecert_context_new()

MAKECERT_CONTEXT* makecert_context_new ( void  )
Here is the caller graph for this function:

◆ makecert_context_output_certificate_file()

int makecert_context_output_certificate_file ( MAKECERT_CONTEXT *  context,
const char *  path 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makecert_context_output_private_key_file()

int makecert_context_output_private_key_file ( MAKECERT_CONTEXT *  context,
const char *  path 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makecert_context_parse_arguments()

static int makecert_context_parse_arguments ( MAKECERT_CONTEXT *  context,
COMMAND_LINE_ARGUMENT_A args,
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:

◆ makecert_context_process()

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:

◆ makecert_context_set_output_file_name()

int makecert_context_set_output_file_name ( MAKECERT_CONTEXT *  context,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makecert_print_command_line_help()

static int makecert_print_command_line_help ( COMMAND_LINE_ARGUMENT_A args,
int  argc,
char **  argv 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makecert_read_str()

static char* makecert_read_str ( BIO *  bio,
size_t *  pOffset 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_get_default_name()

static char* x509_get_default_name ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_name_parse()

static char* x509_name_parse ( char *  name,
char *  txt,
size_t *  length 
)
static
Here is the caller graph for this function: