diff --git a/src/crypto/crypto_keys.cc b/src/crypto/crypto_keys.cc index d837b265c1ff4a..2882a3852504f3 100644 --- a/src/crypto/crypto_keys.cc +++ b/src/crypto/crypto_keys.cc @@ -75,12 +75,11 @@ void GetKeyFormatAndTypeFromJs( *offset += 2; } -ParseKeyResult TryParsePublicKey( - EVPKeyPointer* pkey, - const BIOPointer& bp, - const char* name, - // NOLINTNEXTLINE(runtime/int) - const std::function& parse) { +template +ParseKeyResult TryParsePublicKey(EVPKeyPointer* pkey, + const BIOPointer& bp, + const char* name, + F&& parse) { unsigned char* der_data; long der_len; // NOLINT(runtime/int)