FreeRDP
|
#include <freerdp/config.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <winpr/assert.h>
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/file.h>
#include <winpr/crypto.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/bn.h>
#include "cert_common.h"
#include "crypto.h"
#include "opensslcompat.h"
Macros | |
#define | TAG FREERDP_TAG("core") |
Functions | |
static BOOL | cert_info_allocate (rdpCertInfo *info, size_t size) |
BOOL | read_bignum (BYTE **dst, UINT32 *length, const BIGNUM *num, BOOL alloc) |
BOOL | cert_info_create (rdpCertInfo *dst, const BIGNUM *rsa, const BIGNUM *rsa_e) |
BOOL | cert_info_clone (rdpCertInfo *dst, const rdpCertInfo *src) |
void | cert_info_free (rdpCertInfo *info) |
BOOL | cert_info_read_modulus (rdpCertInfo *info, size_t size, wStream *s) |
BOOL | cert_info_read_exponent (rdpCertInfo *info, size_t size, wStream *s) |
X509 * | x509_from_rsa (const RSA *rsa) |
#define TAG FREERDP_TAG("core") |
FreeRDP: A Remote Desktop Protocol Implementation Certificate Handling
Copyright 2011 Jiten Pathy Copyright 2011 Marc-Andre Moreau marca Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger ndre .more au@g mail. commarti Copyright 2023 Armin Novak n.ha imber ger@ thinc ast. 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 cert_info_clone | ( | rdpCertInfo * | dst, |
const rdpCertInfo * | src | ||
) |
BOOL cert_info_create | ( | rdpCertInfo * | dst, |
const BIGNUM * | rsa, | ||
const BIGNUM * | rsa_e | ||
) |
FreeRDP: A Remote Desktop Protocol Implementation Certificate and private key heplers
Copyright 2023 Armin Novak anova 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.
void cert_info_free | ( | rdpCertInfo * | info | ) |
BOOL cert_info_read_exponent | ( | rdpCertInfo * | info, |
size_t | size, | ||
wStream * | s | ||
) |
BOOL cert_info_read_modulus | ( | rdpCertInfo * | info, |
size_t | size, | ||
wStream * | s | ||
) |
BOOL read_bignum | ( | BYTE ** | dst, |
UINT32 * | length, | ||
const BIGNUM * | num, | ||
BOOL | alloc | ||
) |
X509* x509_from_rsa | ( | const RSA * | rsa | ) |