FreeRDP
x509_utils.h File Reference
#include <winpr/custom-crypto.h>
#include <openssl/x509.h>
#include <freerdp/api.h>
This graph shows which files directly or indirectly include this file:

Functions

FREERDP_LOCAL WINPR_MD_TYPE x509_utils_get_signature_alg (const X509 *xcert)
 
FREERDP_LOCAL BYTEx509_utils_get_hash (const X509 *xcert, const char *hash, size_t *length)
 
FREERDP_LOCAL BYTEx509_utils_to_pem (const X509 *xcert, const STACK_OF(X509) *chain, size_t *length)
 
FREERDP_LOCAL X509 * x509_utils_from_pem (const char *data, size_t length, BOOL fromFile)
 
FREERDP_LOCAL char * x509_utils_get_subject (const X509 *xcert)
 
FREERDP_LOCAL char * x509_utils_get_issuer (const X509 *xcert)
 
FREERDP_LOCAL char * x509_utils_get_email (const X509 *x509)
 
FREERDP_LOCAL char * x509_utils_get_upn (const X509 *x509)
 
FREERDP_LOCAL char * x509_utils_get_date (const X509 *x509, BOOL startDate)
 
FREERDP_LOCAL char * x509_utils_get_common_name (const X509 *xcert, size_t *plength)
 
FREERDP_LOCAL char ** x509_utils_get_dns_names (const X509 *xcert, size_t *count, size_t **pplengths)
 
FREERDP_LOCAL void x509_utils_dns_names_free (size_t count, size_t *lengths, char **dns_names)
 
FREERDP_LOCAL BOOL x509_utils_check_eku (const X509 *scert, int nid)
 
FREERDP_LOCAL void x509_utils_print_info (const X509 *xcert)
 
FREERDP_LOCAL BOOL x509_utils_verify (X509 *xcert, STACK_OF(X509) *chain, const char *certificate_store_path)
 

Function Documentation

◆ x509_utils_check_eku()

FREERDP_LOCAL BOOL x509_utils_check_eku ( const X509 *  scert,
int  nid 
)
Here is the caller graph for this function:

◆ x509_utils_dns_names_free()

FREERDP_LOCAL void x509_utils_dns_names_free ( size_t  count,
size_t *  lengths,
char **  dns_names 
)
Here is the caller graph for this function:

◆ x509_utils_from_pem()

FREERDP_LOCAL X509* x509_utils_from_pem ( const char *  data,
size_t  length,
BOOL  fromFile 
)
Here is the caller graph for this function:

◆ x509_utils_get_common_name()

FREERDP_LOCAL char* x509_utils_get_common_name ( const X509 *  xcert,
size_t *  plength 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_get_date()

FREERDP_LOCAL char* x509_utils_get_date ( const X509 *  x509,
BOOL  startDate 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_get_dns_names()

FREERDP_LOCAL char** x509_utils_get_dns_names ( const X509 *  xcert,
size_t *  count,
size_t **  pplengths 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_get_email()

FREERDP_LOCAL char* x509_utils_get_email ( const X509 *  x509)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_get_hash()

FREERDP_LOCAL BYTE* x509_utils_get_hash ( const X509 *  xcert,
const char *  hash,
size_t *  length 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_get_issuer()

FREERDP_LOCAL char* x509_utils_get_issuer ( const X509 *  xcert)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_get_signature_alg()

FREERDP_LOCAL WINPR_MD_TYPE x509_utils_get_signature_alg ( const X509 *  xcert)

FreeRDP: A Remote Desktop Protocol Implementation Cryptographic Abstraction Layer

Copyright 2011-2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2023 Armin Novak anova.nosp@m.k@th.nosp@m.incas.nosp@m.t.co.nosp@m.m Copyright 2023 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_get_subject()

FREERDP_LOCAL char* x509_utils_get_subject ( const X509 *  xcert)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_get_upn()

FREERDP_LOCAL char* x509_utils_get_upn ( const X509 *  x509)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_utils_print_info()

FREERDP_LOCAL void x509_utils_print_info ( const X509 *  xcert)
Here is the call graph for this function:

◆ x509_utils_to_pem()

FREERDP_LOCAL BYTE* x509_utils_to_pem ( const X509 *  xcert,
const STACK_OF(X509) *  chain,
size_t *  length 
)

◆ x509_utils_verify()

FREERDP_LOCAL BOOL x509_utils_verify ( X509 *  xcert,
STACK_OF(X509) *  chain,
const char *  certificate_store_path 
)
Here is the call graph for this function:
Here is the caller graph for this function: