28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#include "config.h"
#ifdef FOSSIL_ENABLE_SSL
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include "http_ssl.h"
#include <assert.h>
#include <sys/types.h>
/*
** There can only be a single OpenSSL IO connection open at a time.
|
>
|
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include "config.h"
#ifdef FOSSIL_ENABLE_SSL
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/x509.h>
#include "http_ssl.h"
#include <assert.h>
#include <sys/types.h>
/*
** There can only be a single OpenSSL IO connection open at a time.
|
496
497
498
499
500
501
502
|
N -= got;
pContent = (void*)&((char*)pContent)[got];
}
return total;
}
#endif /* FOSSIL_ENABLE_SSL */
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
|
N -= got;
pContent = (void*)&((char*)pContent)[got];
}
return total;
}
#endif /* FOSSIL_ENABLE_SSL */
/*
** COMMAND: test-ssl-trust-store
**
** Show the file and directory where OpenSSL looks for certificates
** of trusted CAs.
*/
void test_ssl_info(void){
#if !defined(FOSSIL_ENABLE_SSL)
fossil_print("SSL disabled in this build\n");
#else
fossil_print("file: %-14s %s\n",
X509_get_default_cert_file_env(),
X509_get_default_cert_file());
fossil_print("dir: %-14s %s\n",
X509_get_default_cert_dir_env(),
X509_get_default_cert_dir());
#endif
}
|