Make it compile cleanly under Visual Studio 2009.

This commit is contained in:
Jonathan Naylor
2024-07-03 13:44:34 +01:00
parent 80d08d43a9
commit 063217fde0
6 changed files with 115 additions and 14 deletions

View File

@@ -28,6 +28,12 @@
#include <cstdint>
#include <string>
#if defined(_WIN32) || defined(_WIN64)
#include <wincrypt.h>
#else
#include <md5.h>
#endif
enum IAX_STATUS {
IAXS_DISCONNECTED,
IAXS_CONNECTING,
@@ -85,6 +91,9 @@ private:
unsigned int m_rxDropped;
unsigned int m_rxOOO;
bool m_keyed;
#if defined(_WIN32) || defined(_WIN64)
HCRYPTPROV m_provider;
#endif
bool writeNew(bool retry);
bool writeAuthRep();