taganaka / SpeedTest

Yet another unofficial speedtest.net client cli interface
331 stars 83 forks source link

SpeedTest compiler warnings #46

Open mikemadden42 opened 3 years ago

mikemadden42 commented 3 years ago

When I build SpeedTest on macOS, I get these warnings:

hulk@lab:[~/s/S/build]:ninja                                                                                 master +
[1/5] Building CXX object CMakeFiles/SpeedTest.dir/MD5Util.cpp.o
/Users/hulk/src/SpeedTest/MD5Util.cpp:12:5: warning: 'CC_MD5_Init' is deprecated: first deprecated in macOS 10.15 - This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [-Wdeprecated-declarations]
    MD5_Init(&ctx);
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/CommonCrypto/CommonDigest.h:280:37: note: expanded from macro 'MD5_Init'
#define MD5_Init                    CC_MD5_Init
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/CommonCrypto/CommonDigest.h:133:12: note: 'CC_MD5_Init' has been explicitly marked deprecated here
extern int CC_MD5_Init(CC_MD5_CTX *c)
           ^
/Users/hulk/src/SpeedTest/MD5Util.cpp:13:5: warning: 'CC_MD5_Update' is deprecated: first deprecated in macOS 10.15 - This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [-Wdeprecated-declarations]
    MD5_Update(&ctx, str.c_str(), str.size());
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/CommonCrypto/CommonDigest.h:281:37: note: expanded from macro 'MD5_Update'
#define MD5_Update                  CC_MD5_Update
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/CommonCrypto/CommonDigest.h:136:12: note: 'CC_MD5_Update' has been explicitly marked deprecated here
extern int CC_MD5_Update(CC_MD5_CTX *c, const void *data, CC_LONG len)
           ^
/Users/hulk/src/SpeedTest/MD5Util.cpp:14:5: warning: 'CC_MD5_Final' is deprecated: first deprecated in macOS 10.15 - This function is cryptographically broken and should not be used in security contexts. Clients should migrate to SHA256 (or stronger). [-Wdeprecated-declarations]
    MD5_Final(digest, &ctx);
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/CommonCrypto/CommonDigest.h:282:37: note: expanded from macro 'MD5_Final'
#define MD5_Final                   CC_MD5_Final
                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/CommonCrypto/CommonDigest.h:139:12: note: 'CC_MD5_Final' has been explicitly marked deprecated here
extern int CC_MD5_Final(unsigned char *md, CC_MD5_CTX *c)
           ^
3 warnings generated.
[5/5] Linking CXX executable SpeedTest
$ sw_vers
ProductName:    macOS
ProductVersion: 11.6
BuildVersion:   20G165

$ uname -m
x86_64