FreeRDP
TestKnownHosts.c File Reference

Functions

static int prepare (const char *currentFileV2)
 
static BOOL setup_config (rdpSettings **settings)
 
static BOOL equal (const char *a, const char *b)
 
static BOOL compare (const rdpCertificateData *data, const rdpCertificateData *stored)
 
static BOOL pem_equal (const char *a, const char *b)
 
static BOOL compare_ex (const rdpCertificateData *data, const rdpCertificateData *stored)
 
static BOOL test_get_data (rdpCertificateStore *store, const rdpCertificateData *data)
 
static BOOL test_get_data_ex (rdpCertificateStore *store, const rdpCertificateData *data)
 
static BOOL test_certs_dir (void)
 
int TestKnownHosts (int argc, char *argv[])
 

Variables

static const char pem1 []
 
static const char pem2 []
 
static const char pem3 []
 
static const char pem4 []
 

Function Documentation

◆ compare()

static BOOL compare ( const rdpCertificateData *  data,
const rdpCertificateData *  stored 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ compare_ex()

static BOOL compare_ex ( const rdpCertificateData *  data,
const rdpCertificateData *  stored 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ equal()

static BOOL equal ( const char *  a,
const char *  b 
)
static
Here is the caller graph for this function:

◆ pem_equal()

static BOOL pem_equal ( const char *  a,
const char *  b 
)
static
Here is the caller graph for this function:

◆ prepare()

static int prepare ( const char *  currentFileV2)
static
Here is the call graph for this function:

◆ setup_config()

static BOOL setup_config ( rdpSettings **  settings)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_certs_dir()

static BOOL test_certs_dir ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_get_data()

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

◆ test_get_data_ex()

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

◆ TestKnownHosts()

int TestKnownHosts ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

Variable Documentation

◆ pem1

const char pem1[]
static

FreeRDP: A Remote Desktop Protocol Implementation

Copyright 2015 Thincast Technologies GmbH Copyright 2015 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.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.

◆ pem2

const char pem2[]
static

◆ pem3

const char pem3[]
static
Initial value:
= "-----BEGIN CERTIFICATE-----\n"
"MIICDDCCAZGgAwIBAgIQbkepx2ypcyRAiQ8DVd2NHTAKBggqhkjOPQQDAzBHMQsw\n"
"CQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEU\n"
"MBIGA1UEAxMLR1RTIFJvb3QgUjMwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAw\n"
"MDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZp\n"
"Y2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjMwdjAQBgcqhkjOPQIBBgUrgQQA\n"
"IgNiAAQfTzOHMymKoYTey8chWEGJ6ladK0uFxh1MJ7x/JlFyb+Kf1qPKzEUURout\n"
"736GjOyxfi//qXGdGIRFBEFVbivqJn+7kAHjSxm65FSWRQmx1WyRRK2EE46ajA2A\n"
"DDL24CejQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud\n"
"DgQWBBTB8Sa6oC2uhYHP0/EqEr24Cmf9vDAKBggqhkjOPQQDAwNpADBmAjEAgFuk\n"
"fCPAlaUs3L6JbyO5o91lAFJekazInXJ0glMLfalAvWhgxeG4VDvBNhcl2MG9AjEA\n"
"njWSdIUlUfUk7GRSJFClH9voy8l27OyCbvWFGFPouOOaKaqW04MjyaR7YbPMAuhd\n"
"-----END CERTIFICATE-----"

◆ pem4

const char pem4[]
static
Initial value:
= "-----BEGIN CERTIFICATE-----\n"
"MIICCjCCAZGgAwIBAgIQbkepyIuUtui7OyrYorLBmTAKBggqhkjOPQQDAzBHMQsw\n"
"CQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExMQzEU\n"
"MBIGA1UEAxMLR1RTIFJvb3QgUjQwHhcNMTYwNjIyMDAwMDAwWhcNMzYwNjIyMDAw\n"
"MDAwWjBHMQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZp\n"
"Y2VzIExMQzEUMBIGA1UEAxMLR1RTIFJvb3QgUjQwdjAQBgcqhkjOPQIBBgUrgQQA\n"
"IgNiAATzdHOnaItgrkO4NcWBMHtLSZ37wWHO5t5GvWvVYRg1rkDdc/eJkTBa6zzu\n"
"hXyiQHY7qca4R9gq55KRanPpsXI5nymfopjTX15YhmUPoYRlBtHci8nHc8iMai/l\n"
"xKvRHYqjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud\n"
"DgQWBBSATNbrdP9JNqPV2Py1PsVq8JQdjDAKBggqhkjOPQQDAwNnADBkAjBqUFJ0\n"
"CMRw3J5QdCHojXohw0+WbhXRIjVhLfoIN+4Zba3bssx9BzT1YBkstTTZbyACMANx\n"
"sbqjYAuG7ZoIapVon+Kz4ZNkfF6Tpt95LY2F45TPI11xzPKwTdb+mciUqXWi4w==\n"
"-----END CERTIFICATE-----"