| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ef5dabd commit fa0e8d7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -75,12 +75,11 @@ void GetKeyFormatAndTypeFromJs( | |||
| 75 | 75 | *offset += 2; | |
| 76 | 76 | } | |
| 77 | 77 | ||
| 78 | - ParseKeyResult TryParsePublicKey( | ||
| 79 | - EVPKeyPointer* pkey, | ||
| 80 | - const BIOPointer& bp, | ||
| 81 | - const char* name, | ||
| 82 | - // NOLINTNEXTLINE(runtime/int) | ||
| 83 | - const std::function<EVP_PKEY*(const unsigned char** p, long l)>& parse) { | ||
| 78 | + template <typename F> | ||
| 79 | + ParseKeyResult TryParsePublicKey(EVPKeyPointer* pkey, | ||
| 80 | + const BIOPointer& bp, | ||
| 81 | + const char* name, | ||
| 82 | + F&& parse) { | ||
| 84 | 83 | unsigned char* der_data; | |
| 85 | 84 | long der_len; // NOLINT(runtime/int) | |
| 86 | 85 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments