FreeRDP
|
#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_pem_ex (const rdpCertificateData *cert, BOOL withFullChain) |
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) |
#define TAG FREERDP_TAG("crypto") |
FreeRDP: A Remote Desktop Protocol Implementation Certificate Handling
Copyright 2011 Jiten Pathy Copyright 2011-2012 Marc-Andre Moreau marca Copyright 2023 Armin Novak ndre .more au@g mail. comanova Copyright 2023 Thincast Technologies GmbH k@th incas t.co m
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.
|
static |
BOOL freerdp_certificate_data_equal | ( | const rdpCertificateData * | a, |
const rdpCertificateData * | b | ||
) |
void freerdp_certificate_data_free | ( | rdpCertificateData * | data | ) |
const char* freerdp_certificate_data_get_fingerprint | ( | const rdpCertificateData * | cert | ) |
const char* freerdp_certificate_data_get_hash | ( | const rdpCertificateData * | cert | ) |
const char* freerdp_certificate_data_get_host | ( | const rdpCertificateData * | cert | ) |
const char* freerdp_certificate_data_get_issuer | ( | const rdpCertificateData * | cert | ) |
const char* freerdp_certificate_data_get_pem | ( | const rdpCertificateData * | cert | ) |
const char* freerdp_certificate_data_get_pem_ex | ( | const rdpCertificateData * | cert, |
BOOL | withFullChain | ||
) |
UINT16 freerdp_certificate_data_get_port | ( | const rdpCertificateData * | cert | ) |
const char* freerdp_certificate_data_get_subject | ( | const rdpCertificateData * | cert | ) |
char* freerdp_certificate_data_hash | ( | const char * | hostname, |
UINT16 | port | ||
) |
|
static |
|
static |
rdpCertificateData* freerdp_certificate_data_new | ( | const char * | hostname, |
UINT16 | port, | ||
const rdpCertificate * | xcert | ||
) |
rdpCertificateData* freerdp_certificate_data_new_from_file | ( | const char * | hostname, |
UINT16 | port, | ||
const char * | file | ||
) |
rdpCertificateData* freerdp_certificate_data_new_from_pem | ( | const char * | hostname, |
UINT16 | port, | ||
const char * | pem, | ||
size_t | length | ||
) |
|
static |