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

OpenSSL v3.0.x Support - fixing deprecation warnings #197

Closed
sreimers opened this issue Jan 12, 2022 · 0 comments · Fixed by #206
Closed

OpenSSL v3.0.x Support - fixing deprecation warnings #197

sreimers opened this issue Jan 12, 2022 · 0 comments · Fixed by #206
Milestone

Comments

@sreimers
Copy link
Member

sreimers commented Jan 12, 2022

For OpenSSL v3 we have to fix many deprecation warnings, since we use some low level APIs:

https://wiki.openssl.org/index.php/OpenSSL_3.0#Main_Changes_in_OpenSSL_3.0_from_OpenSSL_1.1.1

CC      build-x86_64/stun/ctrans.o                                                                                                                        
src/websock/websock.c:374:2: warning: 'SHA1_Init' is deprecated [-Wdeprecated-declarations]                                                                 
        SHA1_Init(&ctx);                                                                                                                                    
        ^                                                                                                                                                   
.././include/openssl/sha.h:49:1: note: 'SHA1_Init' has been explicitly marked deprecated here                                                               
OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);                                                                                                            
^                                                                                                                                                           
.././include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'                                                                     
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)                                                                                        
                                                ^                                                                                                           
.././include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'                                                                            
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))                                                                                             
                                                   ^                                                                                                        
src/websock/websock.c:375:2: warning: 'SHA1_Update' is deprecated [-Wdeprecated-declarations]                                                               
        SHA1_Update(&ctx, key->p, key->l);                                                                                                                  
        ^                                                                                                                                                   
.././include/openssl/sha.h:50:1: note: 'SHA1_Update' has been explicitly marked deprecated here                                                             
OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);                                                                            
^                                                                                                                                                           
.././include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'                                                                     
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)                                                                                        
                                                ^                                                                                                           
.././include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'                                                                            
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))                                                                                             
                                                   ^                                                                                                        
src/websock/websock.c:376:2: warning: 'SHA1_Update' is deprecated [-Wdeprecated-declarations]                                                               
        SHA1_Update(&ctx, magic, sizeof(magic)-1);                                                                                                          
        ^                                                                                                                                                   
.././include/openssl/sha.h:50:1: note: 'SHA1_Update' has been explicitly marked deprecated here                                                             
OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);                                                                            
^                                                                                                                                                           
.././include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'                                                                     
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)                                                                                        
                                                ^                                                                                                           
.././include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'                                                                            
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))                                                                                             
                                                   ^
src/websock/websock.c:377:2: warning: 'SHA1_Final' is deprecated [-Wdeprecated-declarations]
        SHA1_Final(digest, &ctx);
        ^
.././include/openssl/sha.h:51:1: note: 'SHA1_Final' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
^
.././include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
.././include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
  CC      build-x86_64/stun/dnsdisc.o

...
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

Successfully merging a pull request may close this issue.

1 participant