Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpeedTest compiler warnings #46

Open
mikemadden42 opened this issue Sep 25, 2021 · 0 comments
Open

SpeedTest compiler warnings #46

mikemadden42 opened this issue Sep 25, 2021 · 0 comments

Comments

@mikemadden42
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant