FreeRDP
cert_common.c File Reference
#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)
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("core")

FreeRDP: A Remote Desktop Protocol Implementation Certificate Handling

Copyright 2011 Jiten Pathy Copyright 2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..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

◆ cert_info_allocate()

BOOL cert_info_allocate ( rdpCertInfo *  info,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cert_info_clone()

BOOL cert_info_clone ( rdpCertInfo *  dst,
const rdpCertInfo *  src 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cert_info_create()

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.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:

◆ cert_info_free()

void cert_info_free ( rdpCertInfo *  info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cert_info_read_exponent()

BOOL cert_info_read_exponent ( rdpCertInfo *  info,
size_t  size,
wStream s 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cert_info_read_modulus()

BOOL cert_info_read_modulus ( rdpCertInfo *  info,
size_t  size,
wStream s 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_bignum()

BOOL read_bignum ( BYTE **  dst,
UINT32 *  length,
const BIGNUM *  num,
BOOL  alloc 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x509_from_rsa()

X509* x509_from_rsa ( const RSA *  rsa)
Here is the caller graph for this function: