mirror of
https://github.com/matrix-construct/construct
synced 2024-05-19 19:33:45 +02:00
ircd::openssl: Fix argument narrowing from default constants.
This commit is contained in:
parent
50017e2555
commit
4e5002eb43
|
@ -90,9 +90,9 @@ namespace ircd::openssl
|
||||||
extern const size_t DH_DEFAULT_GEN;
|
extern const size_t DH_DEFAULT_GEN;
|
||||||
extern const size_t DH_DEFAULT_BITS;
|
extern const size_t DH_DEFAULT_BITS;
|
||||||
extern const string_view rfc3526_dh_params_pem;
|
extern const string_view rfc3526_dh_params_pem;
|
||||||
DH &gendh(DH &, const uint &bits = DH_DEFAULT_BITS, const uint &gen = DH_DEFAULT_GEN);
|
DH &gendh(DH &, const size_t &bits = DH_DEFAULT_BITS, const size_t &gen = DH_DEFAULT_GEN);
|
||||||
string_view gendh(const mutable_buffer &, const uint &bits = DH_DEFAULT_BITS, const uint &gen = DH_DEFAULT_GEN);
|
string_view gendh(const mutable_buffer &, const size_t &bits = DH_DEFAULT_BITS, const size_t &gen = DH_DEFAULT_GEN);
|
||||||
void gendh(const string_view &dhfile, const uint &bits = DH_DEFAULT_BITS, const uint &gen = DH_DEFAULT_GEN);
|
void gendh(const string_view &dhfile, const size_t &bits = DH_DEFAULT_BITS, const size_t &gen = DH_DEFAULT_GEN);
|
||||||
|
|
||||||
// X.509 suite
|
// X.509 suite
|
||||||
const_buffer i2d(const mutable_buffer &out, const X509 &);
|
const_buffer i2d(const mutable_buffer &out, const X509 &);
|
||||||
|
|
|
@ -865,8 +865,8 @@ ircd::openssl::DH_DEFAULT_GEN
|
||||||
|
|
||||||
void
|
void
|
||||||
ircd::openssl::gendh(const string_view &dhfile,
|
ircd::openssl::gendh(const string_view &dhfile,
|
||||||
const uint &bits,
|
const size_t &bits,
|
||||||
const uint &gen)
|
const size_t &gen)
|
||||||
{
|
{
|
||||||
bio::write_file(dhfile, [&bits, &gen]
|
bio::write_file(dhfile, [&bits, &gen]
|
||||||
(const mutable_buffer &buf)
|
(const mutable_buffer &buf)
|
||||||
|
@ -877,8 +877,8 @@ ircd::openssl::gendh(const string_view &dhfile,
|
||||||
|
|
||||||
ircd::string_view
|
ircd::string_view
|
||||||
ircd::openssl::gendh(const mutable_buffer &buf,
|
ircd::openssl::gendh(const mutable_buffer &buf,
|
||||||
const uint &bits,
|
const size_t &bits,
|
||||||
const uint &gen)
|
const size_t &gen)
|
||||||
{
|
{
|
||||||
const custom_ptr<DH> dh
|
const custom_ptr<DH> dh
|
||||||
{
|
{
|
||||||
|
@ -895,8 +895,8 @@ ircd::openssl::gendh(const mutable_buffer &buf,
|
||||||
|
|
||||||
DH &
|
DH &
|
||||||
ircd::openssl::gendh(DH &dh,
|
ircd::openssl::gendh(DH &dh,
|
||||||
const uint &bits,
|
const size_t &bits,
|
||||||
const uint &gen)
|
const size_t &gen)
|
||||||
{
|
{
|
||||||
#ifdef IRCD_OPENSSL_API_1_1_X
|
#ifdef IRCD_OPENSSL_API_1_1_X
|
||||||
const custom_ptr<BN_GENCB> gencb
|
const custom_ptr<BN_GENCB> gencb
|
||||||
|
|
Loading…
Reference in a new issue