resolve: sort headers

This commit is contained in:
Yu Watanabe 2018-08-02 15:41:48 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent cad8d67194
commit 72938b9309
4 changed files with 8 additions and 10 deletions

View File

@ -4,11 +4,11 @@
#error This source file requires DNS-over-TLS to be enabled and GnuTLS to be available.
#endif
#include "resolved-dnstls.h"
#include "resolved-dns-stream.h"
#include <gnutls/socket.h>
#include "resolved-dns-stream.h"
#include "resolved-dnstls.h"
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) {

View File

@ -5,9 +5,8 @@
#error This source file requires DNS-over-TLS to be enabled and GnuTLS to be available.
#endif
#include <stdbool.h>
#include <gnutls/gnutls.h>
#include <stdbool.h>
struct DnsTlsServerData {
gnutls_certificate_credentials_t cert_cred;

View File

@ -4,12 +4,12 @@
#error This source file requires DNS-over-TLS to be enabled and OpenSSL to be available.
#endif
#include "resolved-dnstls.h"
#include "resolved-dns-stream.h"
#include <openssl/bio.h>
#include <openssl/err.h>
#include "resolved-dns-stream.h"
#include "resolved-dnstls.h"
DEFINE_TRIVIAL_CLEANUP_FUNC(SSL*, SSL_free);
DEFINE_TRIVIAL_CLEANUP_FUNC(BIO*, BIO_free);

View File

@ -5,9 +5,8 @@
#error This source file requires DNS-over-TLS to be enabled and OpenSSL to be available.
#endif
#include <stdbool.h>
#include <openssl/ssl.h>
#include <stdbool.h>
struct DnsTlsServerData {
SSL_CTX *ctx;