FreeRDP
Test_x509_cert_info.c File Reference
#include <winpr/file.h>
#include <freerdp/crypto/crypto.h>

Typedefs

typedef char *(* get_field_pr) (X509 *)
 

Functions

static char * crypto_cert_subject_common_name_wo_length (X509 *xcert)
 
static char * certificate_path (void)
 
static int TestCertificateFile (const char *certificate_path, const certificate_test_t *ccertificate_tests, int count)
 
int Test_x509_cert_info (int argc, char *argv[])
 

Variables

static const certificate_test_t certificate_tests []
 

Typedef Documentation

◆ get_field_pr

typedef char*(* get_field_pr) (X509 *)

Function Documentation

◆ certificate_path()

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

◆ crypto_cert_subject_common_name_wo_length()

static char* crypto_cert_subject_common_name_wo_length ( X509 *  xcert)
static
Here is the call graph for this function:

◆ Test_x509_cert_info()

int Test_x509_cert_info ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ TestCertificateFile()

static int TestCertificateFile ( const char *  certificate_path,
const certificate_test_t *  ccertificate_tests,
int  count 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ certificate_tests

const certificate_test_t certificate_tests[]
static
Initial value:
= {
{ ENABLED, "Certificate Common Name", crypto_cert_subject_common_name_wo_length,
"TESTJEAN TESTMARTIN 9999999" },
{ ENABLED, "Certificate subject", crypto_cert_subject,
"CN = TESTJEAN TESTMARTIN 9999999, C = FR, O = MINISTERE DES TESTS, OU = 0002 110014016, OU "
"= PERSONNES, UID = 9999999, GN = TESTJEAN, SN = TESTMARTIN" },
{ DISABLED, "Kerberos principal name", 0, "testjean.testmartin@kpn.test.example.com" },
{ ENABLED, "Certificate e-mail", crypto_cert_get_email, "testjean.testmartin@test.example.com"
},
{ ENABLED, "Microsoft's Universal Principal Name", crypto_cert_get_upn,
"testjean.testmartin.9999999@upn.test.example.com" },
{ ENABLED, "Certificate issuer", crypto_cert_issuer,
"CN = ADMINISTRATION CENTRALE DES TESTS, C = FR, O = MINISTERE DES TESTS, OU = 0002 "
"110014016" },
}
static char * crypto_cert_subject_common_name_wo_length(X509 *xcert)
Definition: Test_x509_cert_info.c:17
FREERDP_API char * crypto_cert_get_upn(X509 *x509)
Definition: libfreerdp/crypto/crypto.c:774
FREERDP_API char * crypto_cert_issuer(X509 *xcert)
Definition: libfreerdp/crypto/crypto.c:866
FREERDP_API char * crypto_cert_subject(X509 *xcert)
Definition: libfreerdp/crypto/crypto.c:380
FREERDP_API char * crypto_cert_get_email(X509 *x509)
Definition: libfreerdp/crypto/crypto.c:747