Skip to content

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

@sreimers

Description

@sreimers

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

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions