=pod =head1 NAME SSL_new - create a new SSL structure for a connection =head1 SYNOPSIS #include SSL *SSL_new(SSL_CTX *ctx); =head1 DESCRIPTION SSL_new() creates a new B structure which is needed to hold the data for a TLS/SSL connection. The new structure inherits the settings of the underlying context B: connection method (SSLv2/v3/TLSv1), options, verification settings, timeout settings. =head1 RETURN VALUES The following return values can occur: =over 4 =item NULL The creation of a new SSL structure failed. Check the error stack to find out the reason. =item Pointer to an SSL structure The return value points to an allocated SSL structure. =back =head1 SEE ALSO L, L, L, L, L =cut ption value='master' selected='selected'>master Dragon Research Labs RPKI Toolkitgit user
aboutsummaryrefslogtreecommitdiff
blob: 9965d69bf2ecc7a71e8e7cbaa250089441e5bf6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
=pod

=head1 NAME

 CONF_modules_load_file, CONF_modules_load - OpenSSL configuration functions

=head1 SYNOPSIS

 #include <openssl/conf.h>

 int CONF_modules_load_file(const char *filename, const char *appname,
			   unsigned long flags);
 int CONF_modules_load(const CONF *cnf, const char *appname,
		      unsigned long flags);

=head1 DESCRIPTION

The function CONF_modules_load_file() configures OpenSSL using file
B<filename> and application name B<appname>. If B<filename> is NULL
the standard OpenSSL configuration file is used. If B<appname> is
NULL the standard OpenSSL application name B<openssl_conf> is used.
The behaviour can be cutomized using B<flags>.

CONF_modules_load() is idential to CONF_modules_load_file() except it
read configuration information from B<cnf>. 

=head1 NOTES

The following B<flags> are currently recognized:

B<CONF_MFLAGS_IGNORE_ERRORS> if set errors returned by individual
configuration modules are ignored. If not set the first module error is
considered fatal and no further modules are loads.

Normally any modules errors will add error information to the error queue. If
B<CONF_MFLAGS_SILENT> is set no error information is added.

If B<CONF_MFLAGS_NO_DSO> is set configuration module loading from DSOs is
disabled.

B<CONF_MFLAGS_IGNORE_MISSING_FILE> if set will make CONF_load_modules_file()
ignore missing configuration files. Normally a missing configuration file
return an error.

=head1 RETURN VALUE

These functions return 1 for success and a zero or negative value for
failure. If module errors are not ignored the return code will reflect the
return value of the failing module (this will always be zero or negative).

=head1 SEE ALSO

L<conf(5)|conf(5)>, L<OPENSSL_config(3)|OPENSSL_config(3)>,
L<CONF_free(3), CONF_free(3)>, L<err(3),err(3)>

=head1 HISTORY

CONF_modules_load_file and CONF_modules_load first appeared in OpenSSL 0.9.7.

=cut