aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/net/crypto_socket.cpp
blob: 0ae90be85398cbede4ebb417fa9bf92951de6a91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "crypto_socket.h"
#include <vespa/vespalib/net/connection_auth_context.h>

namespace vespalib {

CryptoSocket::~CryptoSocket() = default;

std::unique_ptr<net::ConnectionAuthContext>
CryptoSocket::make_auth_context()
{
    return std::make_unique<net::ConnectionAuthContext>(
            net::tls::PeerCredentials(),
            net::tls::CapabilitySet::make_with_all_capabilities());
}

} // namespace vespalib