aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/net/tls/impl/iana_cipher_map.h
blob: d2953a69afc795feb715fac76e968a043bd4666b (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/vespalib/stllike/string.h>

#include <vector>

namespace vespalib::net::tls {

/**
 * Returns the OpenSSL cipher suite name for a given IANA cipher suite name, or nullptr if
 * there is no known mapping.
 *
 * Note that this only covers a very restricted subset of the existing IANA ciphers.
 */
const char* iana_cipher_suite_to_openssl(vespalib::stringref iana_name);

/**
 * Returns a vector of all IANA cipher suite names that we support internally.
 * It is guaranteed that any cipher suite name returned from this function will
 * have a non-nullptr return value from iana_cipher_suite_to_openssl(name).
 */
std::vector<vespalib::string> modern_iana_cipher_suites();

}