Skip to content

Commit

Permalink
fix incorrect function added by add_function ptyhon script
Browse files Browse the repository at this point in the history
  • Loading branch information
cps-b committed Nov 30, 2023
1 parent d53994c commit 9c8150d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/openssl_lib_mock.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace openssl
class OpenSSLLibMockInterface
{
public:
virtual OSSL_PARAM SSL_OSSL_PARAM_construct_utf8_string(const char *key, char *buf) = 0;
virtual OSSL_PARAM SSL_OSSL_PARAM_construct_utf8_string(const char *key, char *buf, size_t bsize) = 0;
virtual OSSL_PARAM SSL_OSSL_PARAM_construct_end() = 0;
virtual void SSL_OPENSSL_cleanse(void *ptr, size_t len) = 0;
virtual int SSL_EVP_PKEY_bits(EVP_PKEY *pkey) = 0;
Expand Down Expand Up @@ -449,7 +449,7 @@ class OpenSSLLibMockInterface
class OpenSSLLibMock : public OpenSSLLibMockInterface
{
public:
MOCK_METHOD1(SSL_OSSL_PARAM_construct_utf8_string, OSSL_PARAM(const char *key));
MOCK_METHOD1(SSL_OSSL_PARAM_construct_utf8_string, OSSL_PARAM(const char, char *, size_t));
MOCK_METHOD0(SSL_OSSL_PARAM_construct_end, OSSL_PARAM());
MOCK_METHOD2(SSL_OPENSSL_cleanse, void(void *, size_t));
MOCK_METHOD1(SSL_EVP_PKEY_bits, int(EVP_PKEY *));
Expand Down

0 comments on commit 9c8150d

Please sign in to comment.