diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-19 10:15:57 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-21 12:45:25 +0100 |
commit | 7f95bb22d38b29fabb5f9127ac6602b4871317ae (patch) | |
tree | 739ad18712655927296e7f99bfee2b433b7ab7c8 /src/resolve | |
parent | 9389a3cdc82022a0b8bcfcfee9b45a4896b34539 (diff) | |
download | systemd-7f95bb22d38b29fabb5f9127ac6602b4871317ae.tar.gz |
resolve: rename define fixing a typo
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dnstls-gnutls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dnstls-gnutls.c b/src/resolve/resolved-dnstls-gnutls.c index 9e5e60fcce..ed0a31e8bf 100644 --- a/src/resolve/resolved-dnstls-gnutls.c +++ b/src/resolve/resolved-dnstls-gnutls.c @@ -9,7 +9,7 @@ #include "resolved-dns-stream.h" #include "resolved-dnstls.h" -#define PRIORTY_STRING "NORMAL:-VERS-ALL:+VERS-TLS1.3:+VERS-TLS1.2" +#define TLS_PROTOCOL_PRIORITY "NORMAL:-VERS-ALL:+VERS-TLS1.3:+VERS-TLS1.2" DEFINE_TRIVIAL_CLEANUP_FUNC(gnutls_session_t, gnutls_deinit); static ssize_t dnstls_stream_writev(gnutls_transport_ptr_t p, const giovec_t *iov, int iovcnt) { @@ -38,7 +38,7 @@ int dnstls_stream_connect_tls(DnsStream *stream, DnsServer *server) { return r; /* As DNS-over-TLS is a recent protocol, older TLS versions can be disabled */ - r = gnutls_priority_set_direct(gs, PRIORTY_STRING, NULL); + r = gnutls_priority_set_direct(gs, TLS_PROTOCOL_PRIORITY, NULL); if (r < 0) return r; |