FreeRDP
certificate_store.c File Reference
#include <freerdp/config.h>
#include <winpr/assert.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <winpr/crypto.h>
#include <winpr/crt.h>
#include <winpr/file.h>
#include <winpr/path.h>
#include <freerdp/settings.h>
#include <freerdp/crypto/crypto.h>
#include <freerdp/crypto/certificate_store.h>
#include <freerdp/log.h>

Macros

#define TAG   FREERDP_TAG("crypto")
 

Functions

static char * freerdp_certificate_store_file_path (const rdpCertificateStore *store, const char *hash)
 
freerdp_certificate_store_result freerdp_certificate_store_contains_data (rdpCertificateStore *store, const rdpCertificateData *data)
 
BOOL freerdp_certificate_store_remove_data (rdpCertificateStore *store, const rdpCertificateData *data)
 
BOOL freerdp_certificate_store_save_data (rdpCertificateStore *store, const rdpCertificateData *data)
 
rdpCertificateData * freerdp_certificate_store_load_data (rdpCertificateStore *store, const char *host, UINT16 port)
 
rdpCertificateStore * freerdp_certificate_store_new (const rdpSettings *settings)
 
void freerdp_certificate_store_free (rdpCertificateStore *store)
 
const char * freerdp_certificate_store_get_certs_path (const rdpCertificateStore *store)
 
const char * freerdp_certificate_store_get_hosts_path (const rdpCertificateStore *store)
 
char * freerdp_certificate_store_get_cert_path (const rdpCertificateStore *store, const char *host, UINT16 port)
 

Variables

static const char certificate_store_dir [] = "certs"
 
static const char certificate_server_dir [] = "server"
 

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

◆ freerdp_certificate_store_contains_data()

freerdp_certificate_store_result freerdp_certificate_store_contains_data ( rdpCertificateStore *  store,
const rdpCertificateData *  data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_store_file_path()

static char* freerdp_certificate_store_file_path ( const rdpCertificateStore *  store,
const char *  hash 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_store_free()

void freerdp_certificate_store_free ( rdpCertificateStore *  store)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_store_get_cert_path()

char* freerdp_certificate_store_get_cert_path ( const rdpCertificateStore *  store,
const char *  host,
UINT16  port 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_store_get_certs_path()

const char* freerdp_certificate_store_get_certs_path ( const rdpCertificateStore *  store)
Here is the caller graph for this function:

◆ freerdp_certificate_store_get_hosts_path()

const char* freerdp_certificate_store_get_hosts_path ( const rdpCertificateStore *  store)
Here is the caller graph for this function:

◆ freerdp_certificate_store_load_data()

rdpCertificateData* freerdp_certificate_store_load_data ( rdpCertificateStore *  store,
const char *  host,
UINT16  port 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_store_new()

rdpCertificateStore* freerdp_certificate_store_new ( const rdpSettings *  settings)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_store_remove_data()

BOOL freerdp_certificate_store_remove_data ( rdpCertificateStore *  store,
const rdpCertificateData *  data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_certificate_store_save_data()

BOOL freerdp_certificate_store_save_data ( rdpCertificateStore *  store,
const rdpCertificateData *  data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ certificate_server_dir

const char certificate_server_dir[] = "server"
static

◆ certificate_store_dir

const char certificate_store_dir[] = "certs"
static