Johannes Schindelin
1328f69d53
vtls: introduce curl_global_sslset()
...
Let's add a compile time safe API to select an SSL backend. This
function needs to be called *before* curl_global_init(), and can be
called only once.
Side note: we do not explicitly test that it is called before
curl_global_init(), but we do verify that it is not called multiple times
(even implicitly).
If SSL is used before the function was called, it will use whatever the
CURL_SSL_BACKEND environment variable says (or default to the first
available SSL backend), and if a subsequent call to
curl_global_sslset() disagrees with the previous choice, it will fail
with CURLSSLSET_TOO_LATE.
The function also accepts an "avail" parameter to point to a (read-only)
NULL-terminated list of available backends. This comes in real handy if
an application wants to let the user choose between whatever SSL backends
the currently available libcurl has to offer: simply call
curl_global_sslset(-1, NULL, &avail);
which will return CURLSSLSET_UNKNOWN_BACKEND and populate the avail
variable to point to the relevant information to present to the user.
Just like with the HTTP/2 push functions, we have to add the function
declaration of curl_global_sslset() function to the header file
*multi.h* because VMS and OS/400 require a stable order of functions
declared in include/curl/*.h (where the header files are sorted
alphabetically). This looks a bit funny, but it cannot be helped.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2017-08-28 14:56:59 +02:00
..
2017-08-10 01:40:05 -04:00
2017-08-28 14:56:59 +02:00
2017-04-17 08:32:13 +02:00
2017-01-23 14:27:32 +01:00
2016-10-18 13:59:54 +02:00
2016-02-03 00:19:02 +01:00
2016-02-03 00:19:02 +01:00
2017-07-28 15:51:25 +02:00
2017-07-10 02:09:27 -04:00
2016-06-22 10:28:41 +02:00
2016-10-31 08:46:35 +01:00
2017-07-27 01:13:19 +02:00
2017-08-03 08:39:23 +02:00
2016-12-18 23:46:17 +01:00
2017-08-22 23:34:47 +02:00
2016-02-03 00:19:02 +01:00
2016-02-03 00:19:02 +01:00
2016-02-03 00:19:02 +01:00
2016-11-24 23:58:22 +01:00
2017-08-23 03:17:10 -04:00
2016-02-03 00:19:02 +01:00
2017-08-22 02:24:09 -04:00
2017-08-22 02:24:09 -04:00
2017-04-22 11:25:27 +02:00
2017-07-28 15:51:25 +02:00
2017-08-16 12:24:39 -05:00
2017-07-28 15:51:25 +02:00
2017-03-13 23:11:45 +01:00
2016-02-03 00:19:02 +01:00
2017-08-14 23:33:41 +02:00
2016-10-31 08:46:35 +01:00
2017-03-13 23:11:45 +01:00
2017-01-13 16:25:20 +01:00
2016-06-22 10:28:41 +02:00
2017-08-17 10:26:59 +02:00
2017-02-06 19:21:05 +00:00
2016-02-09 08:46:36 +01:00
2017-06-02 13:30:41 +02:00
2017-06-02 13:30:41 +02:00
2017-03-13 23:11:45 +01:00
2016-02-03 00:19:02 +01:00
2016-11-24 23:58:22 +01:00
2016-02-03 00:19:02 +01:00
2016-11-24 23:58:22 +01:00
2016-06-22 10:28:41 +02:00
2016-11-24 23:58:22 +01:00
2016-02-03 00:19:02 +01:00
2017-04-21 22:42:14 +02:00
2016-02-03 00:19:02 +01:00
2017-03-26 23:56:23 +02:00
2016-04-01 13:21:12 +01:00
2016-02-03 00:19:02 +01:00
2016-05-20 16:50:04 +02:00
2016-02-03 00:19:02 +01:00
2017-06-05 00:27:29 +02:00
2017-08-28 14:56:58 +02:00
2017-07-10 02:09:27 -04:00
2016-02-03 00:19:02 +01:00
2016-02-03 00:19:02 +01:00
2017-07-28 16:41:29 +02:00
2016-02-03 00:19:02 +01:00
2017-06-03 11:59:38 +02:00
2016-06-22 10:28:41 +02:00
2016-12-13 23:39:11 +01:00
2017-07-10 02:09:27 -04:00
2017-08-17 10:26:53 +02:00
2016-08-31 11:57:28 +01:00
2016-02-03 00:19:02 +01:00
2017-08-01 17:22:30 +02:00
2016-12-13 23:39:11 +01:00
2016-10-31 21:51:19 +01:00
2017-06-30 10:17:27 +02:00
2016-02-03 00:19:02 +01:00
2017-06-03 00:11:51 +02:00
2016-02-03 00:19:02 +01:00
2017-08-06 23:42:50 +02:00
2016-06-22 10:28:41 +02:00
2017-03-13 23:11:45 +01:00
2016-06-22 10:28:41 +02:00
2017-08-14 23:33:41 +02:00
2016-02-03 00:19:02 +01:00
2017-04-22 11:25:27 +02:00
2017-04-22 11:25:27 +02:00
2016-02-03 00:19:02 +01:00
2017-05-11 10:04:01 +02:00
2016-11-24 23:58:22 +01:00
2017-08-17 10:08:11 +02:00
2017-08-17 10:08:11 +02:00
2017-08-14 23:33:41 +02:00
2016-02-03 00:19:02 +01:00
2016-08-21 13:56:22 +02:00
2017-08-28 14:56:57 +02:00
2016-06-22 10:28:41 +02:00
2017-06-30 10:17:27 +02:00
2016-02-03 00:19:02 +01:00
2017-04-22 11:25:27 +02:00
2017-04-22 11:25:27 +02:00
2016-11-24 23:58:22 +01:00
2016-06-22 10:28:41 +02:00
2017-03-13 23:11:45 +01:00
2016-02-03 00:19:02 +01:00
2016-11-24 23:58:22 +01:00
2016-06-22 10:28:41 +02:00
2017-05-24 22:56:22 +02:00
2017-03-26 23:56:23 +02:00
2016-06-22 10:28:41 +02:00
2017-08-18 16:30:36 +02:00
2017-06-18 23:57:45 +02:00
2017-08-14 23:33:41 +02:00
2016-02-03 00:19:02 +01:00
2016-12-21 11:07:26 +01:00
2016-06-22 10:28:41 +02:00
2016-11-24 23:41:44 +01:00
2016-06-22 10:28:41 +02:00
2017-02-06 19:21:05 +00:00
2016-03-27 17:58:50 +01:00
2017-08-16 14:41:31 -04:00
2017-06-18 15:18:15 +02:00
2017-08-18 15:25:22 +02:00
2017-07-06 11:20:57 +02:00
2016-03-11 07:24:39 +00:00
2017-08-13 17:52:15 +02:00
2017-08-13 17:52:15 +02:00
2017-08-24 16:16:27 +02:00
2017-08-23 23:58:49 +02:00
2017-07-10 02:09:27 -04:00
2016-02-03 00:19:02 +01:00
2017-07-10 02:09:27 -04:00
2017-07-05 13:28:19 +02:00
2017-05-01 22:55:29 +02:00
2017-07-10 10:22:34 +02:00
2013-02-17 14:30:38 -07:00
2017-01-19 11:35:48 +00:00
2013-03-08 13:27:45 +01:00
2017-05-10 12:55:36 +02:00
2017-04-22 11:25:27 +02:00
2017-06-14 11:07:33 +02:00
2012-04-07 00:31:24 +02:00
2017-03-26 23:56:23 +02:00
2017-06-21 07:46:21 +02:00
2016-11-14 08:23:52 +01:00
2017-08-22 07:13:20 +00:00
2017-06-14 11:07:33 +02:00
2014-12-05 14:54:25 +01:00
2017-06-15 11:11:15 +02:00
2017-06-02 21:58:48 +02:00
2017-06-02 21:58:48 +02:00
2017-07-10 13:59:05 +02:00
2016-04-29 15:33:46 +02:00
2017-06-16 01:58:23 -04:00
2016-10-30 01:01:29 -04:00
2017-08-17 10:27:00 +02:00
2017-08-01 13:39:38 +02:00
2017-07-28 15:51:25 +02:00
2017-06-08 10:50:47 +02:00
2017-08-03 10:04:16 +02:00
2016-02-03 00:19:02 +01:00
2017-07-10 02:09:27 -04:00
2016-06-22 10:28:41 +02:00
2017-03-13 23:11:45 +01:00
2016-02-03 00:19:02 +01:00
2016-12-14 01:29:44 +01:00
2016-12-13 23:39:11 +01:00
2016-02-03 00:19:02 +01:00
2016-02-03 00:19:02 +01:00
2017-03-26 23:56:23 +02:00
2017-06-30 10:17:27 +02:00
2017-07-10 02:09:27 -04:00
2016-02-03 00:19:02 +01:00
2017-05-01 22:55:29 +02:00
2017-07-28 15:51:25 +02:00
2017-06-19 09:14:49 +02:00
2017-04-04 15:27:45 +02:00
2017-06-30 10:17:27 +02:00
2016-06-22 10:28:41 +02:00
2017-08-15 18:58:31 +02:00
2017-08-15 18:58:31 +02:00
2017-07-28 15:51:25 +02:00
2017-05-08 23:24:29 +02:00
2017-06-30 10:17:27 +02:00
2017-06-30 10:17:27 +02:00
2016-12-24 23:35:43 +01:00
2017-07-28 15:51:25 +02:00
2017-07-05 13:28:28 +02:00
2017-05-01 22:55:29 +02:00
2016-12-19 02:26:52 -05:00
2016-11-24 23:58:22 +01:00
2016-11-24 23:58:22 +01:00
2016-06-22 10:28:41 +02:00
2016-12-13 23:39:11 +01:00
2016-06-22 10:28:41 +02:00
2016-04-01 13:21:12 +01:00
2016-02-03 00:19:02 +01:00
2017-07-09 14:42:13 +02:00
2016-02-03 00:19:02 +01:00
2017-06-30 10:17:27 +02:00
2016-06-22 10:28:41 +02:00
2016-02-03 00:19:02 +01:00
2016-12-13 23:39:11 +01:00
2016-11-24 23:58:22 +01:00
2017-06-28 08:02:58 +02:00
2016-11-24 23:41:44 +01:00
2017-07-28 15:51:25 +02:00
2017-07-28 15:51:25 +02:00
2017-07-29 01:13:42 -04:00
2017-07-28 15:51:25 +02:00
2017-08-17 03:32:00 -04:00
2016-06-22 10:28:41 +02:00
2017-03-13 23:11:45 +01:00
2016-11-24 23:41:44 +01:00
2016-11-11 10:03:48 +01:00
2016-11-11 10:03:48 +01:00
2017-07-11 01:53:23 -04:00
2016-10-31 08:46:35 +01:00
2016-02-03 00:19:02 +01:00
2016-02-03 00:19:02 +01:00
2017-08-27 19:07:38 +02:00
2017-08-17 10:26:53 +02:00
2017-03-26 23:56:23 +02:00
2016-06-04 21:24:09 +01:00
2017-07-31 02:59:05 -04:00
2016-02-03 00:19:02 +01:00
2017-08-19 23:26:30 +02:00
2016-02-03 00:19:02 +01:00
2017-08-12 17:25:50 +02:00
2017-07-28 15:51:25 +02:00
2017-08-15 18:58:31 +02:00
2016-09-04 13:11:23 +02:00
2017-08-28 14:56:58 +02:00
2016-11-25 10:01:58 +01:00
2017-08-28 14:56:58 +02:00
2017-08-28 14:56:56 +02:00
2017-08-17 10:27:00 +02:00
2016-03-26 11:35:07 +00:00
2017-04-04 15:27:45 +02:00
2017-04-04 15:27:45 +02:00
2017-06-03 20:10:52 +02:00
2016-11-24 23:58:22 +01:00