/usr/include/zmqpp/curve.hpp is in libzmqpp-dev 4.1.2-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file is part of zmqpp.
* Copyright (c) 2011-2015 Contributors as noted in the AUTHORS file.
*/
/**
* \file
*
* \date 13 Aug 2014
* \author Ben Gray (\@benjamg)
*/
#ifndef ZMQPP_CURVE_HPP_
#define ZMQPP_CURVE_HPP_
#include <string>
#include <zmq.h>
namespace zmqpp {
/**
* ZMQ curve facilities.
*/
namespace curve
{
/**
* A pair of public and private key.
*/
struct keypair
{
std::string public_key;
std::string secret_key;
};
#if (ZMQ_VERSION_MAJOR >= 4)
keypair generate_keypair();
#endif
} }
#endif /* ZMQPP_CURVE_HPP_ */
|