=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for softether-5.02.5181nb1 [ 2%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/FileSystem.c.o [ 2%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/Memory.c.o [ 3%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/Hamcore.c.o [ 4%] Linking C static library liblibhamcore.a [ 4%] Built target libhamcore [ 5%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encoding.c.o [ 6%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/FileSystem.c.o [ 8%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Cfg.c.o [ 10%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encrypt.c.o [ 10%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/DNS.c.o [ 10%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/FileIO.c.o [ 11%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/main.c.o [ 12%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Crypto/Key.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c: In function 'CryptoKeyRawNew': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c:63:19: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 63 | Copy(key->Data, data, key->Size); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c:4: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/./Memory.h:194:28: note: expected 'void *' but argument is of type 'const void *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Enc_tls1_P_hash': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:118:2: warning: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 118 | ctx = HMAC_CTX_new(); | ^~~ [ 13%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/HTTP.c.o In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:119:2: warning: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 119 | ctx_tmp = HMAC_CTX_new(); | ^~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:130:2: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 130 | HMAC_Init_ex(ctx,sec,sec_len,md, NULL); | ^~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheCompare': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:131:2: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 131 | HMAC_Init_ex(ctx_tmp,sec,sec_len,md, NULL); | ^~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:132:2: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 132 | HMAC_Update(ctx,seed,seed_len); | ^~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:133:2: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 133 | HMAC_Final(ctx,A1,&A1_len); | ^~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:138:3: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 138 | HMAC_Init_ex(ctx,NULL,0,NULL,NULL); /* re-init */ | ^~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:42:19: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 42 | return StrCmpi(c1->Hostname, c2->Hostname); | ~~^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:139:3: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 139 | HMAC_Init_ex(ctx_tmp,NULL,0,NULL,NULL); /* re-init */ | ^~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:140:3: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 140 | HMAC_Update(ctx,A1,A1_len); | ^~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:141:3: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 141 | HMAC_Update(ctx_tmp,A1,A1_len); | ^~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:142:3: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 142 | HMAC_Update(ctx,seed,seed_len); | ^~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char * const' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:42:33: warning: passing argument 2 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 42 | return StrCmpi(c1->Hostname, c2->Hostname); | ~~^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:146:4: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 146 | HMAC_Final(ctx,out,&j); | ^~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:31: note: expected 'char *' but argument is of type 'const char * const' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:149:4: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 149 | HMAC_Final(ctx_tmp,A1,&A1_len); /* calc the next A1 value */ | ^~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:153:4: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 153 | HMAC_Final(ctx,A1,&A1_len); | ^~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseCompare': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:159:2: warning: 'HMAC_CTX_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 159 | HMAC_CTX_free(ctx); | ^~~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:160:2: warning: 'HMAC_CTX_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 160 | HMAC_CTX_free(ctx_tmp); | ^~~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:99:41: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 99 | #define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address))) | ~~~~~^~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:55:9: note: in expansion of macro 'CmpIpAddr' 55 | return CmpIpAddr(&c1->IP, &c2->IP); | ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:196:15: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 196 | int Cmp(void *p1, void *p2, UINT size); | ~~~~~~^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:99:57: warning: passing argument 2 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 99 | #define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address))) | ~~~~~^~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:55:9: note: in expansion of macro 'CmpIpAddr' 55 | return CmpIpAddr(&c1->IP, &c2->IP); | ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:196:25: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 196 | int Cmp(void *p1, void *p2, UINT size); | ~~~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'HashMd4': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:204:2: warning: 'MD4' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 204 | MD4(src, size, dst); | ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:30: /usr/include/openssl/md4.h:53:38: note: declared here 53 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD4(const unsigned char *d, size_t n, | ^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Md5': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:216:2: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 216 | MD5(src, size, dst); | ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:29: /usr/include/openssl/md5.h:52:38: note: declared here 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, | ^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheFind': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:133:49: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 133 | if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheUpdate': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:153:49: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 153 | if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:164:37: warning: passing argument 2 of 'AddHostIPAddressToList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 164 | AddHostIPAddressToList(iplist_v6, ipv6); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1371:42: note: expected 'IP *' but argument is of type 'const IP *' 1371 | void AddHostIPAddressToList(LIST *o, IP *ip); | ~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:170:37: warning: passing argument 2 of 'AddHostIPAddressToList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 170 | AddHostIPAddressToList(iplist_v4, ipv4); /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'NewMdEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:334:3: warning: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 334 | m->Ctx = HMAC_CTX_new(); | ^ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'SetMdKey': | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1371:42: note: expected 'IP *' but argument is of type 'const IP *' 1371 | void AddHostIPAddressToList(LIST *o, IP *ip); | ~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:366:2: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 366 | if (HMAC_Init_ex(md->Ctx, key, key_size, md->Md, NULL) == false) | ^~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheUpdateEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:182:49: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 182 | if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'MdProcess': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:389:3: warning: 'HMAC_Init_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 389 | if (HMAC_Init_ex(md->Ctx, NULL, 0, NULL, NULL) == false) | ^~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:212:31: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 212 | entry->Hostname = CopyStr(hostname); | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:395:3: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 395 | if (HMAC_Update(md->Ctx, src, size) == false) | ^~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:224:43: warning: passing argument 1 of 'CloneIPAddressList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 224 | entry->IPList_v6 = CloneIPAddressList(iplist_v6); | ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1368:32: note: expected 'LIST *' but argument is of type 'const LIST *' 1368 | LIST *CloneIPAddressList(LIST *o); | ~~~~~~^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:401:3: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 401 | if (HMAC_Final(md->Ctx, dest, &len) == false) | ^~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:233:43: warning: passing argument 1 of 'CloneIPAddressList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 233 | entry->IPList_v4 = CloneIPAddressList(iplist_v4); | ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1368:32: note: expected 'LIST *' but argument is of type 'const LIST *' 1368 | LIST *CloneIPAddressList(LIST *o); | ~~~~~~^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'FreeMd': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseFind': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:258:15: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 258 | Copy(&t.IP, ip, sizeof(t.IP)); | ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:437:4: warning: 'HMAC_CTX_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 437 | HMAC_CTX_free(md->Ctx); | ^~~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseUpdate': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:268:47: warning: passing argument 1 of 'IsZeroIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 268 | if (DnsCacheIsEnabled() == false || IsZeroIP(ip)) | ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1230:19: note: expected 'IP *' but argument is of type 'const IP *' 1230 | bool IsZeroIP(IP *ip); | ~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:278:15: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 278 | Copy(&t.IP, ip, sizeof(t.IP)); | ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:281:18: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 281 | if (IsEmptyStr(hostname)) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:295:22: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 295 | Copy(&entry->IP, ip, sizeof(entry->IP)); | ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:302:32: warning: passing argument 2 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 302 | if (StrCmp(entry->Hostname, hostname) != 0) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:42:30: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:305:31: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 305 | entry->Hostname = CopyStr(hostname); | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolve': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaPublicToBuf': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:316:51: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 316 | if ((ipv6 == NULL && ipv4 == NULL) || IsEmptyStr(hostname)) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:663:2: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 663 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolveEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:353:59: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 353 | if (iplist_v6 == NULL || iplist_v4 == NULL || IsEmptyStr(hostname)) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ In file included from /usr/include/openssl/x509.h:28, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/evp.h:1348:22: note: declared here 1348 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:358:14: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 358 | if (StrCmpi(hostname, "localhost") == 0) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char *' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:663:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 663 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:371:19: warning: passing argument 2 of 'StrToIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 371 | if (StrToIP(&ip, hostname)) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1098:28: note: expected 'char *' but argument is of type 'const char *' 1098 | bool StrToIP(IP *ip, char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:669:2: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 669 | RSA_get0_key(rsa, &n, NULL, NULL); | ^~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:217:28: note: declared here 217 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:414:31: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 414 | resolver->Hostname = CopyStr(hostname); | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolver': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:515:22: warning: passing argument 2 of 'InAddrToIP6' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 515 | InAddrToIP6(&ip, &in->sin6_addr); | ^~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1095:43: note: expected 'struct in6_addr *' but argument is of type 'const struct in6_addr *' 1095 | void InAddrToIP6(IP *ip, struct in6_addr *addr); | ~~~~~~~~~~~~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:531:21: warning: passing argument 2 of 'InAddrToIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 531 | InAddrToIP(&ip, &in->sin_addr); | ^~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1094:41: note: expected 'struct in_addr *' but argument is of type 'const struct in_addr *' 1094 | void InAddrToIP(IP *ip, struct in_addr *addr); | ~~~~~~~~~~~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolveReverse': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:556:43: warning: passing argument 1 of 'IsZeroIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 556 | if (dst == NULL || size == 0 || IsZeroIP(ip)) | ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1230:19: note: expected 'IP *' but argument is of type 'const IP *' 1230 | bool IsZeroIP(IP *ip); | ~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:584:22: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 584 | Copy(&resolver->IP, ip, sizeof(resolver->IP)); | ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'GetIPEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:680:31: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 680 | if (ip == NULL || IsEmptyStr(hostname)) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'ReleaseDnsResolver': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:718:9: warning: passing argument 1 of 'Free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 718 | Free(p->Hostname); | ~^~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:184:17: note: expected 'void *' but argument is of type 'const char *' 184 | void Free(void *addr); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaVerifyEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2324:2: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2324 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^~~ In file included from /usr/include/openssl/x509.h:28, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/evp.h:1348:22: note: declared here 1348 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2324:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2324 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2336:2: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2336 | rsa_size = RSA_size(rsa); | ^~~~~~~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:204:27: note: declared here 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); | ^~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2341:2: warning: 'RSA_public_decrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2341 | if (RSA_public_decrypt(bits / 8, sign, decrypt_data, rsa, RSA_PKCS1_PADDING) <= 0) | ^~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:288:5: note: declared here 288 | int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaSignEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2386:2: warning: 'RSA_private_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2386 | if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) | ^~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:285:5: note: declared here 285 | int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2386:2: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2386 | if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) | ^~ In file included from /usr/include/openssl/x509.h:28, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/evp.h:1348:22: note: declared here 1348 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2386:51: warning: passing argument 4 of 'RSA_private_encrypt' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2386 | if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:286:30: note: expected 'RSA *' {aka 'struct rsa_st *'} but argument is of type 'const struct rsa_st *' 286 | RSA *rsa, int padding); | ~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaCheck': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2459:3: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2459 | rsa = RSA_new(); | ^~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:201:28: note: declared here 201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2460:3: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2460 | ret = RSA_generate_key_ex(rsa, bit, e, NULL); | ^~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:260:27: note: declared here 260 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, | ^~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2474:3: warning: 'i2d_RSAPrivateKey_bio' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2474 | i2d_RSAPrivateKey_bio(bio, rsa); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/x509.h:619:27: note: declared here 619 | OSSL_DEPRECATEDIN_3_0 int i2d_RSAPrivateKey_bio(BIO *bp, const RSA *rsa); | ^~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2485:3: warning: 'i2d_RSA_PUBKEY_bio' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2485 | i2d_RSA_PUBKEY_bio(bio, rsa); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/x509.h:623:27: note: declared here 623 | OSSL_DEPRECATEDIN_3_0 int i2d_RSA_PUBKEY_bio(BIO *bp, const RSA *rsa); | ^~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2492:2: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2492 | RSA_free(rsa); | ^~~~~~~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:293:28: note: declared here 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaGen': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2542:3: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2542 | rsa = RSA_new(); | ^~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:201:28: note: declared here 201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2543:3: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2543 | ret = RSA_generate_key_ex(rsa, bit, e, NULL); | ^~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:260:27: note: declared here 260 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, | ^~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2557:3: warning: 'i2d_RSAPrivateKey_bio' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2557 | i2d_RSAPrivateKey_bio(bio, rsa); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/x509.h:619:27: note: declared here 619 | OSSL_DEPRECATEDIN_3_0 int i2d_RSAPrivateKey_bio(BIO *bp, const RSA *rsa); | ^~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2568:3: warning: 'i2d_RSA_PUBKEY_bio' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2568 | i2d_RSA_PUBKEY_bio(bio, rsa); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/x509.h:623:27: note: declared here 623 | OSSL_DEPRECATEDIN_3_0 int i2d_RSA_PUBKEY_bio(BIO *bp, const RSA *rsa); | ^~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2578:2: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 2578 | RSA_free(rsa); | ^~~~~~~~ In file included from /usr/include/openssl/x509.h:35, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/rsa.h:293:28: note: declared here 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'OpensslEngineToK': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:3222:5: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 3222 | ENGINE *engine = ENGINE_by_id(engine_name); | ^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:23: /usr/include/openssl/engine.h:336:31: note: declared here 336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:3223:5: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 3223 | ENGINE_init(engine); | ^~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:23: /usr/include/openssl/engine.h:620:27: note: declared here 620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); | ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:3225:5: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 3225 | pkey = ENGINE_load_private_key(engine, key_file_name, NULL, NULL); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:23: /usr/include/openssl/engine.h:638:11: note: declared here 638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, | ^~~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'NewCrypt': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4077:2: warning: 'RC4_set_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4077 | RC4_set_key(c->Rc4Key, size, (UCHAR *)key); | ^~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:28: /usr/include/openssl/rc4.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len, | ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Encrypt': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4099:2: warning: 'RC4' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4099 | RC4(c->Rc4Key, size, src, dst); | ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:28: /usr/include/openssl/rc4.h:37:28: note: declared here 37 | OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len, | ^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Des3Encrypt2': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4114:2: warning: 'DES_ede3_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4114 | DES_ede3_cbc_encrypt(src, dest, size, | ^~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/include/openssl/des.h:142:6: note: declared here 142 | void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, | ^~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesEncrypt': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4134:2: warning: 'DES_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4134 | DES_cbc_encrypt(src, dest, size, | ^~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/include/openssl/des.h:89:6: note: declared here 89 | void DES_cbc_encrypt(const unsigned char *input, unsigned char *output, | ^~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Des3Decrypt2': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4152:2: warning: 'DES_ede3_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4152 | DES_ede3_cbc_encrypt(src, dest, size, | ^~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/include/openssl/des.h:142:6: note: declared here 142 | void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, | ^~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesEcbEncrypt': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4186:2: warning: 'DES_set_odd_parity' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4186 | DES_set_odd_parity(&key); | ^~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/include/openssl/des.h:176:28: note: declared here 176 | OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key); | ^~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4187:2: warning: 'DES_set_key_unchecked' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4187 | DES_set_key_unchecked(&key, &ks); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/include/openssl/des.h:192:6: note: declared here 192 | void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule); | ^~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4189:2: warning: 'DES_ecb_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4189 | DES_ecb_encrypt(src, dst, &ks, 1); | ^~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/include/openssl/des.h:105:6: note: declared here 105 | void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, | ^~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesDecrypt': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4204:2: warning: 'DES_cbc_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4204 | DES_cbc_encrypt(src, dest, size, | ^~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/include/openssl/des.h:89:6: note: declared here 89 | void DES_cbc_encrypt(const unsigned char *input, unsigned char *output, | ^~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesNewKeyValue': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4226:2: warning: 'DES_set_key_unchecked' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4226 | DES_set_key_unchecked(value, v->KeySchedule); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/include/openssl/des.h:192:6: note: declared here 192 | void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule); | ^~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'AesNewKey': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4262:2: warning: 'AES_set_encrypt_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4262 | AES_set_encrypt_key(data, size * 8, k->EncryptKey); | ^~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:34: /usr/include/openssl/aes.h:51:5: note: declared here 51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits, | ^~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4263:2: warning: 'AES_set_decrypt_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4263 | AES_set_decrypt_key(data, size * 8, k->DecryptKey); | ^~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:34: /usr/include/openssl/aes.h:54:5: note: declared here 54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits, | ^~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhCompute': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4481:2: warning: 'DH_compute_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4481 | i = DH_compute_key(dst_priv_key, bn, dh->dh); | ^ In file included from /usr/include/openssl/dsa.h:51, from /usr/include/openssl/x509.h:36, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/dh.h:228:27: note: declared here 228 | OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key, | ^~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhNew': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4586:2: warning: 'DH_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4586 | dh->dh = DH_new(); | ^~ In file included from /usr/include/openssl/dsa.h:51, from /usr/include/openssl/x509.h:36, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/dh.h:203:27: note: declared here 203 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); | ^~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4591:2: warning: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4591 | DH_set0_pqg(dh->dh, dhp, NULL, dhg); | ^~~~~~~~~~~ In file included from /usr/include/openssl/dsa.h:51, from /usr/include/openssl/x509.h:36, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/dh.h:259:27: note: declared here 259 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); | ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4598:2: warning: 'DH_generate_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4598 | DH_generate_key(dh->dh); | ^~~~~~~~~~~~~~~ In file included from /usr/include/openssl/dsa.h:51, from /usr/include/openssl/x509.h:36, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/dh.h:227:27: note: declared here 227 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh); | ^~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4601:2: warning: 'DH_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4601 | DH_get0_key(dh->dh, &pub, &priv); | ^~~~~~~~~~~ In file included from /usr/include/openssl/dsa.h:51, from /usr/include/openssl/x509.h:36, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/dh.h:260:28: note: declared here 260 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, | ^~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhFree': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4625:2: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4625 | DH_free(dh->dh); | ^~~~~~~ In file included from /usr/include/openssl/dsa.h:51, from /usr/include/openssl/x509.h:36, from /usr/include/openssl/ssl.h:30, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/dh.h:204:28: note: declared here 204 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); | ^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Internal_HMac': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4652:2: warning: 'HMAC_CTX_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 4652 | m->Ctx = HMAC_CTX_new(); | ^ In file included from /usr/include/openssl/ssl.h:36, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ [ 14%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Internat.c.o [ 15%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Kernel.c.o [ 16%] Linking C executable hamcorebuilder [ 16%] Built target hamcorebuilder [ 17%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Mayaqua.c.o [ 18%] Building hamcore.se2 archive file... [ 19%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Memory.c.o [ 20%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Microsoft.c.o [ 21%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Network.c.o In file included from /usr/include/stdio.h:595, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Mayaqua.h:13, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/FileIO.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:12: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'InitCanaryRand': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:115:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 115 | (UINT64)InitCanaryRand, | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:116:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 116 | (UINT64)&canary_inited, | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:117:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 117 | (UINT64) & ((canary_rand_data[0].Data)[0]), | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:118:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 118 | (UINT64)&random_seed[0], | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:122:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 122 | (UINT64)p1, | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:123:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 123 | (UINT64)p2, | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'MallocEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3645:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3645 | tag1->Magic = canary_memtag_magic1 ^ ((UINT64)tag1 * GOLDEN_RATION_PRIME_U64); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3650:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3650 | tag2->Magic = canary_memtag_magic2 ^ ((UINT64)tag2 * GOLDEN_RATION_PRIME_U64); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'ReAlloc': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3747:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3747 | tag1_new->Magic = canary_memtag_magic1 ^ ((UINT64)tag1_new * GOLDEN_RATION_PRIME_U64); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3752:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3752 | tag2_new->Magic = canary_memtag_magic2 ^ ((UINT64)tag2_new * GOLDEN_RATION_PRIME_U64); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'CheckMemTag1': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3810:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3810 | if (tag->Magic != (canary_memtag_magic1 ^ ((UINT64)tag * GOLDEN_RATION_PRIME_U64))) | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'CheckMemTag2': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:3827:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3827 | if (tag->Magic != (canary_memtag_magic2 ^ ((UINT64)tag * GOLDEN_RATION_PRIME_U64))) | ^ [ 22%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/OS.c.o [ 23%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Object.c.o hamcore.se2 builder Destination: "hamcore.se2" Source: "/pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/bin/hamcore" Done! [ 24%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Pack.c.o [ 24%] Built target hamcore-archive-build [ 25%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Proxy.c.o [ 26%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Secure.c.o [ 27%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Str.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'keylog_cb_func': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16130:8: warning: passing argument 1 of 'Debug' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 16130 | Debug(line); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:19: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:49:18: note: expected 'char *' but argument is of type 'const char *' 49 | void Debug(char *fmt, ...); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'NewSSLCtx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16145:3: warning: 'SSL_CTX_set_ssl_version' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 16145 | SSL_CTX_set_ssl_version(ctx, SSLv23_server_method()); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /usr/include/openssl/ssl.h:1993:12: note: declared here 1993 | __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); | ^~~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16149:3: warning: 'SSL_CTX_set_ssl_version' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 16149 | SSL_CTX_set_ssl_version(ctx, SSLv23_client_method()); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /usr/include/openssl/ssl.h:1993:12: note: declared here 1993 | __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); | ^~~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16167:2: warning: 'SSL_CTX_set_tmp_dh_callback' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 16167 | SSL_CTX_set_tmp_dh_callback(ctx, TmpDhCallback); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /usr/include/openssl/ssl.h:2227:6: note: declared here 2227 | void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'GetOSSecurityLevel': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:16200:2: warning: 'SSL_CTX_set_ssl_version' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 16200 | security_level_set_ssl_version = SSL_CTX_set_ssl_version(ctx, SSLv23_server_method()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /usr/include/openssl/ssl.h:1993:12: note: declared here 1993 | __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); | ^~~~~~~~~~~~~~~~~~~~~~~ [ 28%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Table.c.o [ 29%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/TcpIp.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'SignSecByObject': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:343:66: warning: passing argument 5 of 'sec->Api->C_Sign' from incompatible pointer type [-Wincompatible-pointer-types] 343 | ret = sec->Api->C_Sign(sec->SessionId, hash, sizeof(hash), dst, &size); | ^~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:343:66: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:347:67: warning: passing argument 5 of 'sec->Api->C_Sign' from incompatible pointer type [-Wincompatible-pointer-types] 347 | ret = sec->Api->C_Sign(sec->SessionId, hash, sizeof(hash), dst, &size); | ^~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:347:67: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecKey': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:456:2: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 456 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:19: /usr/include/openssl/evp.h:1348:22: note: declared here 1348 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); | ^~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:456:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 456 | rsa = EVP_PKEY_get0_RSA(k->pkey); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:464:2: warning: 'RSA_get0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 464 | RSA_get0_key(rsa, &n, &e, &d); | ^~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:20: /usr/include/openssl/rsa.h:217:28: note: declared here 217 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, | ^~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:465:2: warning: 'RSA_get0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 465 | RSA_get0_factors(rsa, &p, &q); | ^~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:20: /usr/include/openssl/rsa.h:220:28: note: declared here 220 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r, | ^~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:466:2: warning: 'RSA_get0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 466 | RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); | ^~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:20: /usr/include/openssl/rsa.h:225:28: note: declared here 225 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r, | ^~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:525:83: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] 525 | if ((ret = sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object)) != CKR_OK) | ^~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:525:83: note: expected 'CK_OBJECT_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecCert': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:732:83: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] 732 | if ((ret = sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object)) != CKR_OK) | ^~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:732:83: note: expected 'CK_OBJECT_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'EnumSecObject': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:46: warning: passing argument 2 of 'sec->Api->C_FindObjects' from incompatible pointer type [-Wincompatible-pointer-types] 1238 | if (sec->Api->C_FindObjects(sec->SessionId, objects, sizeof(objects) / sizeof(objects[0]), &num_objects) != CKR_OK) | ^~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:46: note: expected 'CK_OBJECT_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:93: warning: passing argument 4 of 'sec->Api->C_FindObjects' from incompatible pointer type [-Wincompatible-pointer-types] 1238 | if (sec->Api->C_FindObjects(sec->SessionId, objects, sizeof(objects) / sizeof(objects[0]), &num_objects) != CKR_OK) | ^~~~~~~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1238:93: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecData': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1360:76: warning: passing argument 4 of 'sec->Api->C_CreateObject' from incompatible pointer type [-Wincompatible-pointer-types] 1360 | if (sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object) != CKR_OK) | ^~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1360:76: note: expected 'CK_OBJECT_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'OpenSecSession': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1644:52: warning: passing argument 5 of 'sec->Api->C_OpenSession' from incompatible pointer type [-Wincompatible-pointer-types] 1644 | CKF_RW_SESSION | CKF_SERIAL_SESSION, NULL, NULL, &session)) != CKR_OK) | ^~~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1644:52: note: expected 'CK_SESSION_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1649:36: warning: passing argument 5 of 'sec->Api->C_OpenSession' from incompatible pointer type [-Wincompatible-pointer-types] 1649 | CKF_SERIAL_SESSION, NULL, NULL, &session)) != CKR_OK) | ^~~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1649:36: note: expected 'CK_SESSION_HANDLE_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'OpenSec': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1737:49: warning: passing argument 3 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] 1737 | if ((err = sec->Api->C_GetSlotList(true, NULL, &sec->NumSlot)) != CKR_OK || sec->NumSlot == 0) | ^~~~~~~~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1737:49: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:39: warning: passing argument 2 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] 1747 | if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK) | ~~~^~~~~~~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:39: note: expected 'CK_SLOT_ID_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:53: warning: passing argument 3 of 'sec->Api->C_GetSlotList' from incompatible pointer type [-Wincompatible-pointer-types] 1747 | if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK) | ^~~~~~~~~~~~~ | | | UINT * {aka unsigned int *} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1747:53: note: expected 'CK_ULONG_PTR' {aka 'long unsigned int *'} but argument is of type 'UINT *' {aka 'unsigned int *'} /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'InitSecureDeviceList': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1885:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1885 | SECURE_DEVICE *dev = &SupportedList[i]; | ^ [ 30%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tick64.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c: In function 'CorrectChecksum': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c:1786:37: warning: taking address of packed member of 'struct PKT' may result in an unaligned pointer value [-Waddress-of-packed-member] 1786 | IPV6_HEADER_PACKET_INFO *v6info = &p->IPv6HeaderPacketInfo; | ^~~~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c: In function 'ParsePacketIPv6Header': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c:2350:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2350 | info->TotalHeaderSize = (UINT)((UINT64)(info->Payload) - (UINT64)(info->IPv6Header)); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c:2350:60: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2350 | info->TotalHeaderSize = (UINT)((UINT64)(info->Payload) - (UINT64)(info->IPv6Header)); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c: In function 'ParsePacketIPv6': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/TcpIp.c:2641:28: warning: taking address of packed member of 'struct PKT' may result in an unaligned pointer value [-Waddress-of-packed-member] 2641 | if (ParsePacketIPv6Header(&p->IPv6HeaderPacketInfo, buf, size) == false) | ^~~~~~~~~~~~~~~~~~~~~~~~ [ 31%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tracking.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Tracking.c: In function 'GetCallStackStr': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Tracking.c:749:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 749 | (void *)s->offset, s->name, UINT64_TO_POINTER(s->disp)); | ^ [ 32%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Unix.c.o [ 33%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Win32.c.o [ 34%] Linking C shared library ../../libmayaqua.so [ 34%] Built target mayaqua [ 34%] Building C object src/Cedar/CMakeFiles/cedar.dir/Account.c.o [ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/AzureClient.c.o [ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeUnix.c.o [ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/Cedar.c.o [ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/Bridge.c.o [ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeWin32.c.o [ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/CM.c.o [ 41%] Building C object src/Cedar/CMakeFiles/cedar.dir/Admin.c.o [ 42%] Building C object src/Cedar/CMakeFiles/cedar.dir/Client.c.o [ 43%] Building C object src/Cedar/CMakeFiles/cedar.dir/Command.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PtGetPublicX25519': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:2733:47: warning: passing argument 4 of 'ParseCommandList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2733 | LIST *o = ParseCommandList(c, cmd_name, str, args, sizeof(args) / sizeof(args[0])); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:13: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Console.h:110:76: note: expected 'PARAM *' but argument is of type 'const PARAM *' 110 | LIST *ParseCommandList(CONSOLE *c, char *cmd_name, wchar_t *command, PARAM param[], UINT num_param); | ~~~~~~^~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PsWgkEnum': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10829:26: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10829 | key = CopyStrToUni(wgk->Key); | ~~~^~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10830:26: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10830 | hub = CopyStrToUni(wgk->Hub); | ~~~^~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:10831:27: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 10831 | user = CopyStrToUni(wgk->User); | ~~~^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ [ 44%] Building C object src/Cedar/CMakeFiles/cedar.dir/Connection.c.o [ 45%] Building C object src/Cedar/CMakeFiles/cedar.dir/Console.c.o [ 46%] Building C object src/Cedar/CMakeFiles/cedar.dir/DDNS.c.o [ 47%] Building C object src/Cedar/CMakeFiles/cedar.dir/Database.c.o [ 48%] Building C object src/Cedar/CMakeFiles/cedar.dir/EM.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c: In function 'SendKeepAlive': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:949:14: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 949 | Copy(seek, &port, sizeof(port)); | ^~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const USHORT *' {aka 'const short unsigned int *'} 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c: In function 'ConnectionReceive': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2232:17: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2232 | if (Cmp(keep_alive_buffer, UDP_NAT_T_PORT_SIGNATURE_IN_KEEP_ALIVE, nat_t_port_sig_size) == 0) | ^~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:196:15: note: expected 'void *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 196 | int Cmp(void *p1, void *p2, UINT size); | ~~~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2253:17: warning: passing argument 1 of 'Cmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2253 | if (Cmp(keep_alive_buffer, UDP_NAT_T_IP_SIGNATURE_IN_KEEP_ALIVE, nat_t_ip_sig_size) == 0) | ^~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:196:15: note: expected 'void *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 196 | int Cmp(void *p1, void *p2, UINT size); | ~~~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:2258:22: warning: passing argument 2 of 'SetIP6' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2258 | SetIP6(&ip, keep_alive_buffer); | ^~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Cedar.h:14, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1277:28: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 1277 | void SetIP6(IP *ip, UCHAR *value); | ~~~~~~~^~~~~ [ 49%] Building C object src/Cedar/CMakeFiles/cedar.dir/EtherLog.c.o [ 50%] Building C object src/Cedar/CMakeFiles/cedar.dir/Hub.c.o [ 51%] Building C object src/Cedar/CMakeFiles/cedar.dir/IPC.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Hub.c: In function 'CmpAccessList': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Hub.c:3232:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3232 | UINT64 size64 = ((UINT64)(&a1->UniqueId) - (UINT64)(&a1->Active)); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Hub.c:3232:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3232 | UINT64 size64 = ((UINT64)(&a1->UniqueId) - (UINT64)(&a1->Active)); | ^ [ 52%] Building C object src/Cedar/CMakeFiles/cedar.dir/Layer3.c.o [ 53%] Building C object src/Cedar/CMakeFiles/cedar.dir/Link.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c: In function 'ParseAndExtractMsChapV2InfoFromPassword': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c:65:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 65 | d->MsChapV2_EapClient = (EAP_CLIENT *)eap_client_ptr; | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c: In function 'NewIPC': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c:393:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 393 | UINT64 ptr = (UINT64)eap_client; | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/IPC.c:514:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 514 | ipc->IpcSessionSharedBuffer = (SHARED_BUFFER *)u64; | ^ [ 54%] Building C object src/Cedar/CMakeFiles/cedar.dir/Listener.c.o [ 55%] Building C object src/Cedar/CMakeFiles/cedar.dir/Logging.c.o [ 56%] Building C object src/Cedar/CMakeFiles/cedar.dir/NM.c.o [ 57%] Building C object src/Cedar/CMakeFiles/cedar.dir/Nat.c.o [ 58%] Building C object src/Cedar/CMakeFiles/cedar.dir/NativeStack.c.o [ 60%] Building C object src/Cedar/CMakeFiles/cedar.dir/NullLan.c.o [ 60%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Logging.c: In function 'PacketLogParseProc': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Logging.c:1598:32: warning: taking address of packed member of 'struct PKT' may result in an unaligned pointer value [-Waddress-of-packed-member] 1598 | ICMPV6_HEADER_INFO *icmp = &p->ICMPv6HeaderPacketInfo; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoLog': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:32:29: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 32 | proto_name = CopyStrToUni(session->Impl->Name()); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoContainerCompare': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:84:28: warning: passing argument 1 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 84 | return StrCmpi(container_1->Name, container_2->Name); | ~~~~~~~~~~~^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char *' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:84:47: warning: passing argument 2 of 'StrCmpi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 84 | return StrCmpi(container_1->Name, container_2->Name); | ~~~~~~~~~~~^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:43:31: note: expected 'char *' but argument is of type 'const char *' 43 | int StrCmpi(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoSessionNew': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:396:26: warning: passing argument 2 of 'CopyIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 396 | CopyIP(&session->SrcIp, src_ip); | ^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1273:26: note: expected 'IP *' but argument is of type 'const IP *' 1273 | void CopyIP(IP *dst, IP *src); | ~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:398:26: warning: passing argument 2 of 'CopyIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 398 | CopyIP(&session->DstIp, dst_ip); | ^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1273:26: note: expected 'IP *' but argument is of type 'const IP *' 1273 | void CopyIP(IP *dst, IP *src); | ~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoSetListenIP': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:447:38: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 447 | Copy(&proto->UdpListener->ListenIP, ip, sizeof(proto->UdpListener->ListenIP)); | ^~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:12: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoHandleConnection': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:502:19: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 502 | if (StrCmp(tmp->Name, protocol) == 0) | ~~~^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char * const' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:502:27: warning: passing argument 2 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 502 | if (StrCmp(tmp->Name, protocol) == 0) | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:30: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:547:38: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 547 | proto_name = CopyStrToUni(container->Name); | ~~~~~~~~~^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char * const' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:640:38: warning: passing argument 1 of 'CopyStrToUni' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 640 | wchar_t *proto_name = CopyStrToUni(impl->Name()); | ^~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:29: note: expected 'char *' but argument is of type 'const char *' 73 | wchar_t *CopyStrToUni(char *str); | ~~~~~~^~~ [ 61%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_EtherIP.c.o [ 62%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IKE.c.o [ 63%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IPsec.c.o [ 64%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IkePacket.c.o [ 65%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_L2TP.c.o [ 66%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_OpenVPN.c.o [ 67%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_PPP.c.o [ 68%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_SSTP.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c: In function 'OvsIsPacketForMe': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c:107:43: warning: passing argument 1 of 'OvsParsePacket' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 107 | OPENVPN_PACKET *packet = OvsParsePacket(data, size); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.h:235:39: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'const void *' 235 | OPENVPN_PACKET *OvsParsePacket(UCHAR *data, UINT size); | ~~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_PPP.c: In function 'PPPParseMSCHAP2ResponsePacketEx': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_PPP.c:3102:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3102 | UINT64 eap_client_ptr = (UINT64)p->EapClient; | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c: In function 'NewSstpServer': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:1019:55: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1019 | StrCpy(s->ClientHostName, sizeof(s->ClientHostName), hostname); | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:17: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' 34 | UINT StrCpy(char *dst, UINT size, char *src); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:1020:59: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1020 | StrCpy(s->ClientCipherName, sizeof(s->ClientCipherName), cipher); | ^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:17: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' 34 | UINT StrCpy(char *dst, UINT size, char *src); | ~~~~~~^~~ [ 69%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_Win7.c.o [ 70%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_WireGuard.c.o [ 71%] Building C object src/Cedar/CMakeFiles/cedar.dir/Protocol.c.o [ 72%] Building C object src/Cedar/CMakeFiles/cedar.dir/Radius.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsOptionStringValue': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:56:13: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 56 | if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:56:50: warning: passing argument 1 of 'StrCmp' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 56 | if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char *' 42 | int StrCmp(char *str1, char *str2); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsProcessDatagrams': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:248:28: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 248 | Copy(&session->IPLocal, &packet->DstIP, sizeof(session->IPLocal)); | ^~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:249:29: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 249 | Copy(&session->IPRemote, &packet->SrcIP, sizeof(session->IPRemote)); | ^~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsDetectMessageType': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:412:27: warning: passing argument 1 of 'IsZero' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 412 | if (IsZero(packet->Header.Reserved, sizeof(packet->Header.Reserved)) == false) | ~~~~~~~~~~~~~~^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:355:19: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 355 | bool IsZero(void *data, UINT size); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsMSS': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:435:12: warning: passing argument 1 of 'IsIP4' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 435 | if (IsIP4(&session->IPRemote)) | ^~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1274:16: note: expected 'IP *' but argument is of type 'const IP *' 1274 | bool IsIP4(IP *ip); | ~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsIPCNew': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:475:53: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 475 | StrCpy(param.ClientName, sizeof(param.ClientName), WgsName()); | ^~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' 34 | UINT StrCpy(char *dst, UINT size, char *src); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsCreateTransportData': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:834:32: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 834 | Copy(ret->EncapsulatedPacket, data, size); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const void *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsEncryptData': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:939:42: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 939 | Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter)); | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const UINT64 *' {aka 'const long long unsigned int *'} 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsDecryptData': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:957:42: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 957 | Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter)); | ^~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const UINT64 *' {aka 'const long long unsigned int *'} 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsEphemeral': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1010:22: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1010 | Copy(ephemeral_dst, ephemeral_src, WG_KEY_SIZE); | ^~~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsHKDF': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1021:15: warning: passing argument 2 of 'SetMdKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1021 | SetMdKey(md, chaining_key, WG_HASH_SIZE); | ^~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Encrypt.h:440:29: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 440 | bool SetMdKey(MD *md, void *key, UINT key_size); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1024:24: warning: passing argument 3 of 'MdProcess' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1024 | MdProcess(md, secret, data, data_size); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Encrypt.h:441:42: note: expected 'void *' but argument is of type 'const BYTE *' {aka 'const unsigned char *'} 441 | UINT MdProcess(MD *md, void *dest, void *src, UINT size); | ~~~~~~^~~ [ 73%] Building C object src/Cedar/CMakeFiles/cedar.dir/Remote.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ServerAccept': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:1552:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1552 | release_me_eap_client = (EAP_CLIENT *)ptr; | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:1612:56: warning: passing argument 1 of 'IsEmptyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1612 | if (c->FirstSock != NULL && IsEmptyStr(c->FirstSock->SslVersion) == false) | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' 97 | bool IsEmptyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:1614:42: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1614 | c->SslVersion = CopyStr(c->FirstSock->SslVersion); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:2116:37: warning: passing argument 1 of 'IsLocalHostIP' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2116 | if (s != NULL && IsLocalHostIP(&s->RemoteIP) == false) | ^~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Cedar.h:14, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.h:11, from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:8: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1282:24: note: expected 'IP *' but argument is of type 'const IP *' 1282 | bool IsLocalHostIP(IP *ip); | ~~~~^~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ClientConnect': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:4980:39: warning: passing argument 1 of 'CopyStr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 4980 | c->SslVersion = CopyStr(c->FirstSock->SslVersion); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:80:21: note: expected 'char *' but argument is of type 'const char *' 80 | char *CopyStr(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'PackWelcome': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:5173:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 5173 | PackAddInt64(p, "IpcSessionSharedBuffer", (UINT64)s->IpcSessionSharedBuffer); | ^ [ 74%] Building C object src/Cedar/CMakeFiles/cedar.dir/SM.c.o [ 75%] Building C object src/Cedar/CMakeFiles/cedar.dir/SW.c.o [ 76%] Building C object src/Cedar/CMakeFiles/cedar.dir/Sam.c.o [ 77%] Building C object src/Cedar/CMakeFiles/cedar.dir/SeLowUser.c.o [ 78%] Building C object src/Cedar/CMakeFiles/cedar.dir/SecureNAT.c.o [ 79%] Building C object src/Cedar/CMakeFiles/cedar.dir/Server.c.o [ 80%] Building C object src/Cedar/CMakeFiles/cedar.dir/Session.c.o [ 81%] Building C object src/Cedar/CMakeFiles/cedar.dir/UT.c.o [ 82%] Building C object src/Cedar/CMakeFiles/cedar.dir/UdpAccel.c.o [ 83%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanUnix.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiLoadConfigurationCfg': [ 84%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanWin32.c.o /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:2792:35: warning: passing argument 2 of 'CfgGetFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2792 | FOLDER *f = CfgGetFolder(f9, name); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:100:44: note: expected 'char *' but argument is of type 'const char *' 100 | FOLDER *CfgGetFolder(FOLDER *parent, char *name); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:2796:42: warning: passing argument 3 of 'StrCpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2796 | StrCpy(wgk->Key, sizeof(wgk->Key), name); | ^~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:36: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' 34 | UINT StrCpy(char *dst, UINT size, char *src); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiLoadProtoCfg': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:6386:41: warning: passing argument 2 of 'CfgGetFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 6386 | FOLDER *ff = CfgGetFolder(f, container->Name); | ~~~~~~~~~^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:100:44: note: expected 'char *' but argument is of type 'const char * const' 100 | FOLDER *CfgGetFolder(FOLDER *parent, char *name); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiWriteProtoCfg': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:6448:44: warning: passing argument 2 of 'CfgCreateFolder' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 6448 | FOLDER *ff = CfgCreateFolder(f, container->Name); | ~~~~~~~~~^~~~~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:86:47: note: expected 'char *' but argument is of type 'const char * const' 86 | FOLDER *CfgCreateFolder(FOLDER *parent, char *name); | ~~~~~~^~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiGetNextFarmMember': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:7175:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 7175 | PackAddInt64Ex(p, "Key", (UINT64)f, i, num); | ^ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:7254:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 7254 | FARM_MEMBER *f = (FARM_MEMBER *)ret_key; | ^ [ 84%] Building C object src/Cedar/CMakeFiles/cedar.dir/Virtual.c.o [ 85%] Building C object src/Cedar/CMakeFiles/cedar.dir/WaterMark.c.o [ 86%] Building C object src/Cedar/CMakeFiles/cedar.dir/WebUI.c.o [ 87%] Building C object src/Cedar/CMakeFiles/cedar.dir/WinUi.c.o [ 88%] Building C object src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o [ 89%] Building C object src/Cedar/CMakeFiles/cedar.dir/Wpc.c.o In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/3rdparty/BLAKE2/sse/blake2s.c:23: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/3rdparty/BLAKE2/sse/blake2-config.h:69:2: error: #error "This code requires at least SSE2." 69 | #error "This code requires at least SSE2." | ^~~~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/3rdparty/BLAKE2/sse/blake2s.c: In function 'blake2s_compress': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/3rdparty/BLAKE2/sse/blake2s.c:191:14: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi] 191 | row1 = ff0 = LOADU( &S->h[0] ); --- src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o --- *** [src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o] Error code 1 make[2]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c: In function 'DecodeSafe64': /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:1297:17: warning: passing argument 1 of 'StrLen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1297 | size = StrLen(src); | ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:19: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:31:19: note: expected 'char *' but argument is of type 'const char *' 31 | UINT StrLen(char *str); | ~~~~~~^~~ /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:1301:12: warning: passing argument 2 of 'Copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1301 | Copy(tmp, src, size); | ^~~ In file included from /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:15: /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const char *' 194 | void Copy(void *dst, void *src, UINT size); | ~~~~~~^~~ 1 error make[2]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 --- src/Cedar/CMakeFiles/cedar.dir/all --- *** [src/Cedar/CMakeFiles/cedar.dir/all] Error code 2 make[1]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 1 error make[1]: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 *** [all] Error code 2 make: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 1 error make: stopped in /pbulk/work/net/softether/work/SoftEtherVPN-5.02.5181 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/net/softether *** Error code 1 Stop. make: stopped in /usr/pkgsrc/net/softether