| 13 | static const char k_szOpenSSHPrivatKeyPEMFooter[] = "-----END OPENSSH PRIVATE KEY-----"; |
| 14 | |
| 15 | static bool BCheckAndEatBytes( CUtlBuffer &buf, const void *data, int sz ) |
| 16 | { |
| 17 | if ( buf.GetBytesRemaining() < sz ) |
| 18 | return false; |
| 19 | if ( V_memcmp( buf.PeekGet(), data, sz ) != 0 ) |
| 20 | return false; |
| 21 | buf.SeekGet( CUtlBuffer::SEEK_CURRENT, sz ); |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | static bool BOpenSSHGetUInt32( CUtlBuffer &buf, uint32 &result ) |
| 26 | { |
no test coverage detected