FreeRDP
certificate_data.c File Reference
#include <ctype.h>
#include <freerdp/config.h>
#include <winpr/assert.h>
#include <winpr/path.h>
#include <freerdp/settings.h>
#include <freerdp/crypto/crypto.h>
#include <freerdp/crypto/certificate_data.h>
#include "certificate.h"
#include <freerdp/log.h>

Macros

#define TAG   FREERDP_TAG("crypto")
 

Functions

static char * ensure_lowercase (char *str, size_t length)
 
static const char * freerdp_certificate_data_hash_ (const char *hostname, UINT16 port, char *name, size_t length)
 
static BOOL freerdp_certificate_data_load_cache (rdpCertificateData *data)
 
static rdpCertificateData * freerdp_certificate_data_new_nocopy (const char *hostname, UINT16 port, rdpCertificate *xcert)
 
rdpCertificateData * freerdp_certificate_data_new (const char *hostname, UINT16 port, const rdpCertificate *xcert)
 
rdpCertificateData * freerdp_certificate_data_new_from_pem (const char *hostname, UINT16 port, const char *pem, size_t length)
 
rdpCertificateData * freerdp_certificate_data_new_from_file (const char *hostname, UINT16 port, const char *file)
 
void freerdp_certificate_data_free (rdpCertificateData *data)
 
const char * freerdp_certificate_data_get_host (const rdpCertificateData *cert)
 
UINT16 freerdp_certificate_data_get_port (const rdpCertificateData *cert)
 
const char * freerdp_certificate_data_get_pem (const rdpCertificateData *cert)
 
const char * freerdp_certificate_data_get_subject (const rdpCertificateData *cert)
 
const char * freerdp_certificate_data_get_issuer (const rdpCertificateData *cert)
 
const char * freerdp_certificate_data_get_fingerprint (const rdpCertificateData *cert)
 
BOOL freerdp_certificate_data_equal (const rdpCertificateData *a, const rdpCertificateData *b)
 
const char * freerdp_certificate_data_get_hash (const rdpCertificateData *cert)
 
char * freerdp_certificate_data_hash (const char *hostname, UINT16 port)
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("crypto")

FreeRDP: A Remote Desktop Protocol Implementation Certificate Handling

Copyright 2011 Jiten Pathy 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.

Function Documentation

◆ ensure_lowercase()

static char* ensure_lowercase ( char *  str,
size_t  length 
)
static
Here is the caller graph for this function:

◆ freerdp_certificate_data_equal()

BOOL freerdp_certificate_data_equal ( const rdpCertificateData *  a,
const rdpCertificateData *  b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_data_free()

void freerdp_certificate_data_free ( rdpCertificateData *  data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_data_get_fingerprint()

const char* freerdp_certificate_data_get_fingerprint ( const rdpCertificateData *  cert)
Here is the caller graph for this function:

◆ freerdp_certificate_data_get_hash()

const char* freerdp_certificate_data_get_hash ( const rdpCertificateData *  cert)
Here is the caller graph for this function:

◆ freerdp_certificate_data_get_host()

const char* freerdp_certificate_data_get_host ( const rdpCertificateData *  cert)
Here is the caller graph for this function:

◆ freerdp_certificate_data_get_issuer()

const char* freerdp_certificate_data_get_issuer ( const rdpCertificateData *  cert)
Here is the caller graph for this function:

◆ freerdp_certificate_data_get_pem()

const char* freerdp_certificate_data_get_pem ( const rdpCertificateData *  cert)
Here is the caller graph for this function:

◆ freerdp_certificate_data_get_port()

UINT16 freerdp_certificate_data_get_port ( const rdpCertificateData *  cert)
Here is the caller graph for this function:

◆ freerdp_certificate_data_get_subject()

const char* freerdp_certificate_data_get_subject ( const rdpCertificateData *  cert)
Here is the caller graph for this function:

◆ freerdp_certificate_data_hash()

char* freerdp_certificate_data_hash ( const char *  hostname,
UINT16  port 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_data_hash_()

static const char* freerdp_certificate_data_hash_ ( const char *  hostname,
UINT16  port,
char *  name,
size_t  length 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_data_load_cache()

static BOOL freerdp_certificate_data_load_cache ( rdpCertificateData *  data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_data_new()

rdpCertificateData* freerdp_certificate_data_new ( const char *  hostname,
UINT16  port,
const rdpCertificate *  xcert 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_data_new_from_file()

rdpCertificateData* freerdp_certificate_data_new_from_file ( const char *  hostname,
UINT16  port,
const char *  file 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_data_new_from_pem()

rdpCertificateData* freerdp_certificate_data_new_from_pem ( const char *  hostname,
UINT16  port,
const char *  pem,
size_t  length 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_data_new_nocopy()

static rdpCertificateData* freerdp_certificate_data_new_nocopy ( const char *  hostname,
UINT16  port,
rdpCertificate *  xcert 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: