Skip to content

Commit

Permalink
num_to_bytestring should be static
Browse files Browse the repository at this point in the history
  • Loading branch information
tilkinsc committed Dec 29, 2024
1 parent 4922822 commit 994f9c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cotp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ namespace COTP
return otp_byte_secret(data, out_str);
}

COTPRESULT num_to_bytestring(uint64_t integer, char* out_str)
{
return otp_num_to_bytestring(integer, out_str);
}

size_t uri_strlen(const char* issuer, const char* name, const char* digest)
{
return otpuri_strlen(data, issuer, name, digest);
Expand All @@ -60,6 +55,11 @@ namespace COTP
return data;
}

static COTPRESULT num_to_bytestring(uint64_t integer, char* out_str)
{
return otp_num_to_bytestring(integer, out_str);
}

static COTPRESULT random_base32(size_t len, char* out_str)
{
return otp_random_base32(len, out_str);
Expand Down

0 comments on commit 994f9c4

Please sign in to comment.