+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/softether-5.02.5181nb1/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/softether-5.02.5181nb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: USE_CMAKE is deprecated; use devel/cmake/build.mk instead. ===> Building for softether-5.02.5181nb1 [ 0%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/FileSystem.c.o [ 1%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/linux_features_aggregator.c.o [ 2%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/Hamcore.c.o [ 3%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_clang_gcc.c.o [ 4%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_msvc.c.o [ 4%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_aarch64.c.o [ 5%] Building C object src/libhamcore/CMakeFiles/libhamcore.dir/Memory.c.o [ 6%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_arm.c.o [ 7%] Linking C static library liblibhamcore.a [ 7%] Built target libhamcore [ 8%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/main.c.o [ 9%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_mips.c.o [ 10%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_ppc.c.o [ 11%] Building C object src/hamcorebuilder/CMakeFiles/hamcorebuilder.dir/FileSystem.c.o [ 12%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_x86.c.o [ 13%] Linking C executable hamcorebuilder [ 14%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/filesystem.c.o [ 14%] Built target hamcorebuilder [ 15%] Building hamcore.se2 archive file... [ 16%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/hwcaps.c.o [ 16%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/stack_line_reader.c.o [ 17%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/cpu_features.dir/src/string_view.c.o [ 18%] Linking C static library libcpu_features.a [ 18%] Built target cpu_features [ 19%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Cfg.c.o hamcore.se2 builder Destination: "hamcore.se2" Source: "/home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/bin/hamcore" Done! [ 19%] Built target hamcore-archive-build [ 20%] Building C object src/Mayaqua/3rdparty/cpu_features/CMakeFiles/list_cpu_features.dir/src/utils/list_cpu_features.c.o [ 21%] Linking C executable list_cpu_features [ 21%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Crypto/Key.c.o [ 21%] Built target list_cpu_features [ 22%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/DNS.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c: In function 'CryptoKeyRawNew': /home/pbulk/build/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] Copy(key->Data, data, key->Size); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Crypto/Key.c:4: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/./Memory.h:194:28: note: expected 'void *' but argument is of type 'const void *' void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ [ 23%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encoding.c.o [ 24%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Encrypt.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Enc_tls1_P_hash': /home/pbulk/build/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] ctx = HMAC_CTX_new(); ^~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:33:33: note: declared here OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); ^~~~~~~~~~~~ /home/pbulk/build/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] ctx_tmp = HMAC_CTX_new(); ^~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:33:33: note: declared here OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); ^~~~~~~~~~~~ /home/pbulk/build/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] HMAC_Init_ex(ctx,sec,sec_len,md, NULL); ^~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:43:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, ^~~~~~~~~~~~ /home/pbulk/build/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] HMAC_Init_ex(ctx_tmp,sec,sec_len,md, NULL); ^~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:43:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:132:2: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_Update(ctx,seed,seed_len); ^~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:45:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:133:2: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_Final(ctx,A1,&A1_len); ^~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:47:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, ^~~~~~~~~~ /home/pbulk/build/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] HMAC_Init_ex(ctx,NULL,0,NULL,NULL); /* re-init */ ^~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:43:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, ^~~~~~~~~~~~ /home/pbulk/build/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] HMAC_Init_ex(ctx_tmp,NULL,0,NULL,NULL); /* re-init */ ^~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:43:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:140:3: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_Update(ctx,A1,A1_len); ^~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:45:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:141:3: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_Update(ctx_tmp,A1,A1_len); ^~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:45:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:142:3: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_Update(ctx,seed,seed_len); ^~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:45:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:146:4: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_Final(ctx,out,&j); ^~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:47:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, ^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:149:4: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_Final(ctx_tmp,A1,&A1_len); /* calc the next A1 value */ ^~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:47:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, ^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:153:4: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] HMAC_Final(ctx,A1,&A1_len); ^~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:47:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, ^~~~~~~~~~ /home/pbulk/build/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] HMAC_CTX_free(ctx); ^~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:35:28: note: declared here OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); ^~~~~~~~~~~~~ /home/pbulk/build/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] HMAC_CTX_free(ctx_tmp); ^~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:35:28: note: declared here OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); ^~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'HashMd4': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:204:2: warning: 'MD4' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] MD4(src, size, dst); ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:30: /usr/pkg/include/openssl/md4.h:53:38: note: declared here OSSL_DEPRECATEDIN_3_0 unsigned char *MD4(const unsigned char *d, size_t n, ^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Md5': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:216:2: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] MD5(src, size, dst); ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:29: /usr/pkg/include/openssl/md5.h:52:38: note: declared here OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, ^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'NewMdEx': /home/pbulk/build/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] m->Ctx = HMAC_CTX_new(); ^ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:33:33: note: declared here OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'SetMdKey': /home/pbulk/build/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] if (HMAC_Init_ex(md->Ctx, key, key_size, md->Md, NULL) == false) ^~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:43:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'MdProcess': /home/pbulk/build/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] if (HMAC_Init_ex(md->Ctx, NULL, 0, NULL, NULL) == false) ^~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:43:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:395:3: warning: 'HMAC_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] if (HMAC_Update(md->Ctx, src, size) == false) ^~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:45:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:401:3: warning: 'HMAC_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] if (HMAC_Final(md->Ctx, dest, &len) == false) ^~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:47:27: note: declared here OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, ^~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'FreeMd': /home/pbulk/build/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] HMAC_CTX_free(md->Ctx); ^~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:35:28: note: declared here OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); ^~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaPublicToBuf': /home/pbulk/build/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] rsa = EVP_PKEY_get0_RSA(k->pkey); ^~~ In file included from /usr/pkg/include/openssl/x509.h:29, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/evp.h:1356:22: note: declared here const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:663:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] rsa = EVP_PKEY_get0_RSA(k->pkey); ^ /home/pbulk/build/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] RSA_get0_key(rsa, &n, NULL, NULL); ^~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:228:28: note: declared here OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheCompare': /home/pbulk/build/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] return StrCmpi(c1->Hostname, c2->Hostname); ~~^~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char * const' int StrCmpi(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/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] return StrCmpi(c1->Hostname, c2->Hostname); ~~^~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:31: note: expected 'char *' but argument is of type 'const char * const' int StrCmpi(char *str1, char *str2); ~~~~~~^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseCompare': /home/pbulk/build/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] #define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address))) ~~~~~^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:55:9: note: in expansion of macro 'CmpIpAddr' return CmpIpAddr(&c1->IP, &c2->IP); ^~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /home/pbulk/build/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 *'} int Cmp(void *p1, void *p2, UINT size); ~~~~~~^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/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] #define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address))) ~~~~~^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:55:9: note: in expansion of macro 'CmpIpAddr' return CmpIpAddr(&c1->IP, &c2->IP); ^~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /home/pbulk/build/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 *'} int Cmp(void *p1, void *p2, UINT size); ~~~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheFind': /home/pbulk/build/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] if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheUpdate': /home/pbulk/build/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] if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ~~~~~~^~~ /home/pbulk/build/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] AddHostIPAddressToList(iplist_v6, ipv6); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1371:42: note: expected 'IP *' {aka 'struct IP *'} but argument is of type 'const IP *' {aka 'const struct IP *'} void AddHostIPAddressToList(LIST *o, IP *ip); ~~~~^~ /home/pbulk/build/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] AddHostIPAddressToList(iplist_v4, ipv4); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1371:42: note: expected 'IP *' {aka 'struct IP *'} but argument is of type 'const IP *' {aka 'const struct IP *'} void AddHostIPAddressToList(LIST *o, IP *ip); ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheUpdateEx': /home/pbulk/build/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] if (DnsCacheIsEnabled() == false || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ~~~~~~^~~ /home/pbulk/build/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] entry->Hostname = CopyStr(hostname); ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:7: note: expected 'char *' but argument is of type 'const char *' char *CopyStr(char *str); ^~~~~~~ /home/pbulk/build/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] entry->IPList_v6 = CloneIPAddressList(iplist_v6); ^~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1368:7: note: expected 'LIST *' {aka 'struct LIST *'} but argument is of type 'const LIST *' {aka 'const struct LIST *'} LIST *CloneIPAddressList(LIST *o); ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] entry->IPList_v4 = CloneIPAddressList(iplist_v4); ^~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1368:7: note: expected 'LIST *' {aka 'struct LIST *'} but argument is of type 'const LIST *' {aka 'const struct LIST *'} LIST *CloneIPAddressList(LIST *o); ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseFind': /home/pbulk/build/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] Copy(&t.IP, ip, sizeof(t.IP)); ^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' {aka 'const struct IP *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsCacheReverseUpdate': /home/pbulk/build/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] if (DnsCacheIsEnabled() == false || IsZeroIP(ip)) ^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1230:19: note: expected 'IP *' {aka 'struct IP *'} but argument is of type 'const IP *' {aka 'const struct IP *'} bool IsZeroIP(IP *ip); ~~~~^~ /home/pbulk/build/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] Copy(&t.IP, ip, sizeof(t.IP)); ^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' {aka 'const struct IP *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/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] if (IsEmptyStr(hostname)) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ~~~~~~^~~ /home/pbulk/build/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] Copy(&entry->IP, ip, sizeof(entry->IP)); ^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' {aka 'const struct IP *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/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] if (StrCmp(entry->Hostname, hostname) != 0) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:42:30: note: expected 'char *' but argument is of type 'const char *' int StrCmp(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/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] entry->Hostname = CopyStr(hostname); ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:7: note: expected 'char *' but argument is of type 'const char *' char *CopyStr(char *str); ^~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolve': /home/pbulk/build/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] if ((ipv6 == NULL && ipv4 == NULL) || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolveEx': /home/pbulk/build/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] if (iplist_v6 == NULL || iplist_v4 == NULL || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ~~~~~~^~~ /home/pbulk/build/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] if (StrCmpi(hostname, "localhost") == 0) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char *' int StrCmpi(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/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] if (StrToIP(&ip, hostname)) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1098:28: note: expected 'char *' but argument is of type 'const char *' bool StrToIP(IP *ip, char *str); ~~~~~~^~~ /home/pbulk/build/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] resolver->Hostname = CopyStr(hostname); ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:80:7: note: expected 'char *' but argument is of type 'const char *' char *CopyStr(char *str); ^~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolver': /home/pbulk/build/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] InAddrToIP6(&ip, &in->sin6_addr); ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/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 *' void InAddrToIP6(IP *ip, struct in6_addr *addr); ~~~~~~~~~~~~~~~~~^~~~ /home/pbulk/build/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] InAddrToIP(&ip, &in->sin_addr); ^~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/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 *' void InAddrToIP(IP *ip, struct in_addr *addr); ~~~~~~~~~~~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'DnsResolveReverse': /home/pbulk/build/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] if (dst == NULL || size == 0 || IsZeroIP(ip)) ^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:1230:19: note: expected 'IP *' {aka 'struct IP *'} but argument is of type 'const IP *' {aka 'const struct IP *'} bool IsZeroIP(IP *ip); ~~~~^~ /home/pbulk/build/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] Copy(&resolver->IP, ip, sizeof(resolver->IP)); ^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' {aka 'const struct IP *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaVerifyEx': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'GetIPEx': /home/pbulk/build/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] rsa = EVP_PKEY_get0_RSA(k->pkey); ^~~ /home/pbulk/build/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] if (ip == NULL || IsEmptyStr(hostname)) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:6: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ~~~~~~^~~ In file included from /usr/pkg/include/openssl/x509.h:29, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/evp.h:1356:22: note: declared here const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2324:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] rsa = EVP_PKEY_get0_RSA(k->pkey); ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c: In function 'ReleaseDnsResolver': /home/pbulk/build/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] Free(p->Hostname); ~^~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/DNS.c:3: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.h:184:17: note: expected 'void *' but argument is of type 'const char *' void Free(void *addr); ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2336:2: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] rsa_size = RSA_size(rsa); ^~~~~~~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:215:27: note: declared here OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa); ^~~~~~~~ /home/pbulk/build/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] if (RSA_public_decrypt(bits / 8, sign, decrypt_data, rsa, RSA_PKCS1_PADDING) <= 0) ^~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:299:5: note: declared here int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to, ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaSignEx': /home/pbulk/build/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] if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) ^~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:296:5: note: declared here int RSA_private_encrypt(int flen, const unsigned char *from, unsigned char *to, ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) ^~ In file included from /usr/pkg/include/openssl/x509.h:29, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/evp.h:1356:22: note: declared here const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); ^~~~~~~~~~~~~~~~~ /home/pbulk/build/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] if (RSA_private_encrypt(sizeof(hash), hash, dst, EVP_PKEY_get0_RSA(k->pkey), RSA_PKCS1_PADDING) <= 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:297:30: note: expected 'RSA *' {aka 'struct rsa_st *'} but argument is of type 'const struct rsa_st *' RSA *rsa, int padding); ~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaCheck': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2459:3: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] rsa = RSA_new(); ^~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:212:28: note: declared here OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); ^~~~~~~ /home/pbulk/build/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] ret = RSA_generate_key_ex(rsa, bit, e, NULL); ^~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:271:27: note: declared here OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] i2d_RSAPrivateKey_bio(bio, rsa); ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/x509.h:622:27: note: declared here OSSL_DEPRECATEDIN_3_0 int i2d_RSAPrivateKey_bio(BIO *bp, const RSA *rsa); ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] i2d_RSA_PUBKEY_bio(bio, rsa); ^~~~~~~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/x509.h:626:27: note: declared here OSSL_DEPRECATEDIN_3_0 int i2d_RSA_PUBKEY_bio(BIO *bp, const RSA *rsa); ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2492:2: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] RSA_free(rsa); ^~~~~~~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:304:28: note: declared here OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'RsaGen': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2542:3: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] rsa = RSA_new(); ^~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:212:28: note: declared here OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); ^~~~~~~ /home/pbulk/build/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] ret = RSA_generate_key_ex(rsa, bit, e, NULL); ^~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:271:27: note: declared here OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] i2d_RSAPrivateKey_bio(bio, rsa); ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/x509.h:622:27: note: declared here OSSL_DEPRECATEDIN_3_0 int i2d_RSAPrivateKey_bio(BIO *bp, const RSA *rsa); ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] i2d_RSA_PUBKEY_bio(bio, rsa); ^~~~~~~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/x509.h:626:27: note: declared here OSSL_DEPRECATEDIN_3_0 int i2d_RSA_PUBKEY_bio(BIO *bp, const RSA *rsa); ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:2578:2: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] RSA_free(rsa); ^~~~~~~~ In file included from /usr/pkg/include/openssl/x509.h:36, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/rsa.h:304:28: note: declared here OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'OpensslEngineToK': /home/pbulk/build/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] ENGINE *engine = ENGINE_by_id(engine_name); ^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:23: /usr/pkg/include/openssl/engine.h:336:31: note: declared here OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id); ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:3223:5: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] ENGINE_init(engine); ^~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:23: /usr/pkg/include/openssl/engine.h:620:27: note: declared here OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e); ^~~~~~~~~~~ /home/pbulk/build/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] pkey = ENGINE_load_private_key(engine, key_file_name, NULL, NULL); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:23: /usr/pkg/include/openssl/engine.h:638:11: note: declared here EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'NewCrypt': /home/pbulk/build/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] RC4_set_key(c->Rc4Key, size, (UCHAR *)key); ^~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:28: /usr/pkg/include/openssl/rc4.h:35:28: note: declared here OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len, ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Encrypt': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4099:2: warning: 'RC4' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] RC4(c->Rc4Key, size, src, dst); ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:28: /usr/pkg/include/openssl/rc4.h:37:28: note: declared here OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len, ^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Des3Encrypt2': /home/pbulk/build/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] DES_ede3_cbc_encrypt(src, dest, size, ^~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/pkg/include/openssl/des.h:142:6: note: declared here void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, ^~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesEncrypt': /home/pbulk/build/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] DES_cbc_encrypt(src, dest, size, ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/pkg/include/openssl/des.h:89:6: note: declared here void DES_cbc_encrypt(const unsigned char *input, unsigned char *output, ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Des3Decrypt2': /home/pbulk/build/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] DES_ede3_cbc_encrypt(src, dest, size, ^~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/pkg/include/openssl/des.h:142:6: note: declared here void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output, ^~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesEcbEncrypt': /home/pbulk/build/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] DES_set_odd_parity(&key); ^~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/pkg/include/openssl/des.h:176:28: note: declared here OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key); ^~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] DES_set_key_unchecked(&key, &ks); ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/pkg/include/openssl/des.h:192:6: note: declared here void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule); ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] DES_ecb_encrypt(src, dst, &ks, 1); ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/pkg/include/openssl/des.h:105:6: note: declared here void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output, ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesDecrypt': /home/pbulk/build/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] DES_cbc_encrypt(src, dest, size, ^~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/pkg/include/openssl/des.h:89:6: note: declared here void DES_cbc_encrypt(const unsigned char *input, unsigned char *output, ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DesNewKeyValue': /home/pbulk/build/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] DES_set_key_unchecked(value, v->KeySchedule); ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:33: /usr/pkg/include/openssl/des.h:192:6: note: declared here void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule); ^~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'AesNewKey': /home/pbulk/build/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] AES_set_encrypt_key(data, size * 8, k->EncryptKey); ^~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:34: /usr/pkg/include/openssl/aes.h:51:5: note: declared here int AES_set_encrypt_key(const unsigned char *userKey, const int bits, ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] AES_set_decrypt_key(data, size * 8, k->DecryptKey); ^~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:34: /usr/pkg/include/openssl/aes.h:54:5: note: declared here int AES_set_decrypt_key(const unsigned char *userKey, const int bits, ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhCompute': /home/pbulk/build/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] i = DH_compute_key(dst_priv_key, bn, dh->dh); ^ In file included from /usr/pkg/include/openssl/dsa.h:31, from /usr/pkg/include/openssl/x509.h:37, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/dh.h:235:27: note: declared here OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key, ^~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhNew': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4586:2: warning: 'DH_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] dh->dh = DH_new(); ^~ In file included from /usr/pkg/include/openssl/dsa.h:31, from /usr/pkg/include/openssl/x509.h:37, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/dh.h:210:27: note: declared here OSSL_DEPRECATEDIN_3_0 DH *DH_new(void); ^~~~~~ /home/pbulk/build/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] DH_set0_pqg(dh->dh, dhp, NULL, dhg); ^~~~~~~~~~~ In file included from /usr/pkg/include/openssl/dsa.h:31, from /usr/pkg/include/openssl/x509.h:37, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/dh.h:266:27: note: declared here OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g); ^~~~~~~~~~~ /home/pbulk/build/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] DH_generate_key(dh->dh); ^~~~~~~~~~~~~~~ In file included from /usr/pkg/include/openssl/dsa.h:31, from /usr/pkg/include/openssl/x509.h:37, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/dh.h:234:27: note: declared here OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh); ^~~~~~~~~~~~~~~ /home/pbulk/build/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] DH_get0_key(dh->dh, &pub, &priv); ^~~~~~~~~~~ In file included from /usr/pkg/include/openssl/dsa.h:31, from /usr/pkg/include/openssl/x509.h:37, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/dh.h:267:28: note: declared here OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, ^~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'DhFree': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:4625:2: warning: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] DH_free(dh->dh); ^~~~~~~ In file included from /usr/pkg/include/openssl/dsa.h:31, from /usr/pkg/include/openssl/x509.h:37, from /usr/pkg/include/openssl/ssl.h:32, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/dh.h:211:28: note: declared here OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh); ^~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c: In function 'Internal_HMac': /home/pbulk/build/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] m->Ctx = HMAC_CTX_new(); ^ In file included from /usr/pkg/include/openssl/ssl.h:38, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Encrypt.c:20: /usr/pkg/include/openssl/hmac.h:33:33: note: declared here OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); ^~~~~~~~~~~~ [ 25%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/FileIO.c.o [ 26%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/HTTP.c.o [ 27%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Internat.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c: In function 'AnsiGetLineUnix': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:2271:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(tmp, sizeof(tmp) - 1, stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Internat.c:2280:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(str, (int)(size - 1), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 27%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Kernel.c.o [ 28%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Mayaqua.c.o [ 29%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Memory.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c: In function 'CrashNow': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Memory.c:647:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] UCHAR *c = (UCHAR *)r; ^ [ 30%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Microsoft.c.o [ 31%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Network.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'NewCancelSpecial': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:10209:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] c->pipe_read = (int)hEvent; ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'keylog_cb_func': /home/pbulk/build/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] Debug(line); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:19: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Str.h:49:18: note: expected 'char *' but argument is of type 'const char *' void Debug(char *fmt, ...); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'NewSSLCtx': /home/pbulk/build/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] SSL_CTX_set_ssl_version(ctx, SSLv23_server_method()); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /usr/pkg/include/openssl/ssl.h:2041:12: note: declared here __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] SSL_CTX_set_ssl_version(ctx, SSLv23_client_method()); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /usr/pkg/include/openssl/ssl.h:2041:12: note: declared here __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] SSL_CTX_set_tmp_dh_callback(ctx, TmpDhCallback); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /usr/pkg/include/openssl/ssl.h:2275:6: note: declared here void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'GetOSSecurityLevel': /home/pbulk/build/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] security_level_set_ssl_version = SSL_CTX_set_ssl_version(ctx, SSLv23_server_method()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8: /usr/pkg/include/openssl/ssl.h:2041:12: note: declared here __owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth); ^~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'UnixWritePipe': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8659:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(pipe_write, &c, 1); ^~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c: In function 'UnixNewPipe': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Network.c:8674:2: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe(fd); ^~~~~~~~ [ 32%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/OS.c.o [ 33%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Object.c.o [ 33%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Pack.c.o [ 34%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Proxy.c.o [ 35%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Secure.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'SignSecByObject': /home/pbulk/build/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] ret = sec->Api->C_Sign(sec->SessionId, hash, sizeof(hash), dst, &size); ^~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/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] ret = sec->Api->C_Sign(sec->SessionId, hash, sizeof(hash), dst, &size); ^~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecKey': /home/pbulk/build/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] rsa = EVP_PKEY_get0_RSA(k->pkey); ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:19: /usr/pkg/include/openssl/evp.h:1356:22: note: declared here const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey); ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:456:6: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] rsa = EVP_PKEY_get0_RSA(k->pkey); ^ /home/pbulk/build/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] RSA_get0_key(rsa, &n, &e, &d); ^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:20: /usr/pkg/include/openssl/rsa.h:228:28: note: declared here OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r, ^~~~~~~~~~~~ /home/pbulk/build/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] RSA_get0_factors(rsa, &p, &q); ^~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:20: /usr/pkg/include/openssl/rsa.h:231:28: note: declared here OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r, ^~~~~~~~~~~~~~~~ /home/pbulk/build/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] RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); ^~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:20: /usr/pkg/include/openssl/rsa.h:236:28: note: declared here OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r, ^~~~~~~~~~~~~~~~~~~ /home/pbulk/build/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] if ((ret = sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object)) != CKR_OK) ^~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecCert': /home/pbulk/build/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] if ((ret = sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object)) != CKR_OK) ^~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'EnumSecObject': /home/pbulk/build/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] if (sec->Api->C_FindObjects(sec->SessionId, objects, sizeof(objects) / sizeof(objects[0]), &num_objects) != CKR_OK) ^~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/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] if (sec->Api->C_FindObjects(sec->SessionId, objects, sizeof(objects) / sizeof(objects[0]), &num_objects) != CKR_OK) ^~~~~~~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'WriteSecData': /home/pbulk/build/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] if (sec->Api->C_CreateObject(sec->SessionId, a, sizeof(a) / sizeof(a[0]), &object) != CKR_OK) ^~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'OpenSecSession': /home/pbulk/build/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] CKF_RW_SESSION | CKF_SERIAL_SESSION, NULL, NULL, &session)) != CKR_OK) ^~~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/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] CKF_SERIAL_SESSION, NULL, NULL, &session)) != CKR_OK) ^~~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'OpenSec': /home/pbulk/build/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] if ((err = sec->Api->C_GetSlotList(true, NULL, &sec->NumSlot)) != CKR_OK || sec->NumSlot == 0) ^~~~~~~~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/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] if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK) ~~~^~~~~~~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/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] if (sec->Api->C_GetSlotList(TRUE, sec->SlotIdList, &sec->NumSlot) != CKR_OK) ^~~~~~~~~~~~~ /home/pbulk/build/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 *'} /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c: In function 'InitSecureDeviceList': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Secure.c:1885:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] SECURE_DEVICE *dev = &SupportedList[i]; ^ [ 36%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Str.c.o [ 37%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Table.c.o [ 38%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/TcpIp.c.o [ 39%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tick64.c.o [ 39%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Tracking.c.o [ 40%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Unix.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c: In function 'UnixExec': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c:422:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(tmp, sizeof(tmp), fp); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c: In function 'UnixInitSolarisSleep': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c:458:8: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] (void)read(solaris_sleep_p1, tmp, sizeof(tmp)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c: In function 'UnixGetCurrentDir': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c:743:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(dir, size); ^~~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c: In function 'UnixSetHighPriority': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c:889:3: warning: ignoring return value of 'nice', declared with attribute warn_unused_result [-Wunused-result] nice(-20); ^~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c: In function 'UnixRestorePriority': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c:902:3: warning: ignoring return value of 'nice', declared with attribute warn_unused_result [-Wunused-result] nice(20); ^~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c: In function 'UnixStopService': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Mayaqua/Unix.c:2576:4: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(tmp); ^~~~~~~~~~~ [ 41%] Building C object src/Mayaqua/CMakeFiles/mayaqua.dir/Win32.c.o [ 42%] Linking C shared library ../../libmayaqua.so [ 42%] Built target mayaqua [ 42%] Building C object src/Cedar/CMakeFiles/cedar.dir/Account.c.o [ 43%] Building C object src/Cedar/CMakeFiles/cedar.dir/Admin.c.o [ 44%] Building C object src/Cedar/CMakeFiles/cedar.dir/AzureClient.c.o [ 45%] Building C object src/Cedar/CMakeFiles/cedar.dir/Bridge.c.o [ 46%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeUnix.c.o [ 47%] Building C object src/Cedar/CMakeFiles/cedar.dir/BridgeWin32.c.o [ 47%] Building C object src/Cedar/CMakeFiles/cedar.dir/CM.c.o [ 48%] Building C object src/Cedar/CMakeFiles/cedar.dir/Cedar.c.o [ 49%] Building C object src/Cedar/CMakeFiles/cedar.dir/Client.c.o [ 50%] Building C object src/Cedar/CMakeFiles/cedar.dir/Command.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'CheckThread1': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:318:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] InputToNull((void *)check_thread_global_1); ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'CheckMemory': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:608:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] InputToNull((void *)(UINT)(((UCHAR *)pp[i])[j] = j % 256)); ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PtGetPublicX25519': /home/pbulk/build/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] LIST *o = ParseCommandList(c, cmd_name, str, args, sizeof(args) / sizeof(args[0])); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:13: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Console.h:110:7: note: expected 'PARAM *' {aka 'struct PARAM *'} but argument is of type 'const PARAM *' {aka 'const struct PARAM *'} LIST *ParseCommandList(CONSOLE *c, char *cmd_name, wchar_t *command, PARAM param[], UINT num_param); ^~~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'StrToPortList': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:7969:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (IsInList(o, (void *)n)) ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:7975:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Add(o, (void *)n); ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PsClusterSettingMember': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:8052:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] t.Ports[i] = (UINT)LIST_DATA(ports, i); ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'CmdEvalHostAndPort': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:8124:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] ret = ParseHostPort(tmp, NULL, NULL, (UINT)param); ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PsWgkEnum': /home/pbulk/build/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] key = CopyStrToUni(wgk->Key); ~~~^~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /home/pbulk/build/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] hub = CopyStrToUni(wgk->Hub); ~~~^~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /home/pbulk/build/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] user = CopyStrToUni(wgk->User); ~~~^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c: In function 'PsPortsUDPSet': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Command.c:23060:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] t.Ports[i] = (UINT)LIST_DATA(ports, i); ^ [ 51%] Building C object src/Cedar/CMakeFiles/cedar.dir/Connection.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c: In function 'SendKeepAlive': /home/pbulk/build/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] Copy(seek, &port, sizeof(port)); ^~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: /home/pbulk/build/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 *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c: In function 'ConnectionReceive': /home/pbulk/build/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] if (Cmp(keep_alive_buffer, UDP_NAT_T_PORT_SIGNATURE_IN_KEEP_ALIVE, nat_t_port_sig_size) == 0) ^~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: /home/pbulk/build/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 *'} int Cmp(void *p1, void *p2, UINT size); ~~~~~~^~ /home/pbulk/build/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] if (Cmp(keep_alive_buffer, UDP_NAT_T_IP_SIGNATURE_IN_KEEP_ALIVE, nat_t_ip_sig_size) == 0) ^~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:27: /home/pbulk/build/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 *'} int Cmp(void *p1, void *p2, UINT size); ~~~~~~^~ /home/pbulk/build/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] SetIP6(&ip, keep_alive_buffer); ^~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Cedar.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.h:11, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.c:8: /home/pbulk/build/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 *'} void SetIP6(IP *ip, UCHAR *value); ~~~~~~~^~~~~ [ 52%] Building C object src/Cedar/CMakeFiles/cedar.dir/Console.c.o [ 53%] Building C object src/Cedar/CMakeFiles/cedar.dir/DDNS.c.o [ 53%] Building C object src/Cedar/CMakeFiles/cedar.dir/Database.c.o [ 54%] Building C object src/Cedar/CMakeFiles/cedar.dir/EM.c.o [ 55%] Building C object src/Cedar/CMakeFiles/cedar.dir/EtherLog.c.o [ 56%] Building C object src/Cedar/CMakeFiles/cedar.dir/Hub.c.o [ 57%] Building C object src/Cedar/CMakeFiles/cedar.dir/IPC.c.o [ 58%] Building C object src/Cedar/CMakeFiles/cedar.dir/Layer3.c.o [ 59%] Building C object src/Cedar/CMakeFiles/cedar.dir/Link.c.o [ 59%] Building C object src/Cedar/CMakeFiles/cedar.dir/Listener.c.o [ 60%] Building C object src/Cedar/CMakeFiles/cedar.dir/Logging.c.o [ 61%] Building C object src/Cedar/CMakeFiles/cedar.dir/NM.c.o [ 62%] Building C object src/Cedar/CMakeFiles/cedar.dir/Nat.c.o [ 63%] Building C object src/Cedar/CMakeFiles/cedar.dir/NativeStack.c.o [ 64%] Building C object src/Cedar/CMakeFiles/cedar.dir/NullLan.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/NativeStack.c: In function 'StartAddIpTablesEntryForNativeStack': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/NativeStack.c:511:6: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(cmdline); ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/NativeStack.c:527:5: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(cmdline); ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/NativeStack.c: In function 'MaintainAddIpTablesEntryForNativeStack': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/NativeStack.c:580:4: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(cmdline); ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/NativeStack.c: In function 'EndAddIpTablesEntryForNativeStack': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/NativeStack.c:624:5: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] system(cmdline); ^~~~~~~~~~~~~~~ [ 65%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto.c.o [ 65%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_EtherIP.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoLog': /home/pbulk/build/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] proto_name = CopyStrToUni(session->Impl->Name()); ^~~~~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoContainerCompare': /home/pbulk/build/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] return StrCmpi(container_1->Name, container_2->Name); ~~~~~~~~~~~^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:43:19: note: expected 'char *' but argument is of type 'const char *' int StrCmpi(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/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] return StrCmpi(container_1->Name, container_2->Name); ~~~~~~~~~~~^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:43:31: note: expected 'char *' but argument is of type 'const char *' int StrCmpi(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoSessionNew': /home/pbulk/build/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] CopyIP(&session->SrcIp, src_ip); ^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1273:26: note: expected 'IP *' {aka 'struct IP *'} but argument is of type 'const IP *' {aka 'const struct IP *'} void CopyIP(IP *dst, IP *src); ~~~~^~~ /home/pbulk/build/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] CopyIP(&session->DstIp, dst_ip); ^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1273:26: note: expected 'IP *' {aka 'struct IP *'} but argument is of type 'const IP *' {aka 'const struct IP *'} void CopyIP(IP *dst, IP *src); ~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoSetListenIP': /home/pbulk/build/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] Copy(&proto->UdpListener->ListenIP, ip, sizeof(proto->UdpListener->ListenIP)); ^~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:12: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' {aka 'const struct IP *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c: In function 'ProtoHandleConnection': /home/pbulk/build/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] if (StrCmp(tmp->Name, protocol) == 0) ~~~^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char * const' int StrCmp(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/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] if (StrCmp(tmp->Name, protocol) == 0) ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:14: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:30: note: expected 'char *' but argument is of type 'const char *' int StrCmp(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/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] proto_name = CopyStrToUni(container->Name); ~~~~~~~~~^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char * const' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ /home/pbulk/build/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] wchar_t *proto_name = CopyStrToUni(impl->Name()); ^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.c:10: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Internat.h:73:10: note: expected 'char *' but argument is of type 'const char *' wchar_t *CopyStrToUni(char *str); ^~~~~~~~~~~~ [ 66%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IKE.c.o [ 67%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IPsec.c.o [ 68%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_IkePacket.c.o [ 69%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_L2TP.c.o [ 70%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_OpenVPN.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c: In function 'OvsIsPacketForMe': /home/pbulk/build/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] OPENVPN_PACKET *packet = OvsParsePacket(data, size); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_OpenVPN.h:235:17: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'const void *' OPENVPN_PACKET *OvsParsePacket(UCHAR *data, UINT size); ^~~~~~~~~~~~~~ [ 71%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_PPP.c.o [ 71%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_SSTP.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c: In function 'NewSstpServer': /home/pbulk/build/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] StrCpy(s->ClientHostName, sizeof(s->ClientHostName), hostname); ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:17: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' UINT StrCpy(char *dst, UINT size, char *src); ~~~~~~^~~ /home/pbulk/build/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] StrCpy(s->ClientCipherName, sizeof(s->ClientCipherName), cipher); ^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_SSTP.c:17: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' UINT StrCpy(char *dst, UINT size, char *src); ~~~~~~^~~ [ 72%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_Win7.c.o [ 73%] Building C object src/Cedar/CMakeFiles/cedar.dir/Proto_WireGuard.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsOptionStringValue': /home/pbulk/build/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] if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char *' int StrCmp(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/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] if (StrCmp(name, "PresharedKey") == 0 || StrCmp(name, "PrivateKey") == 0) ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:42:18: note: expected 'char *' but argument is of type 'const char *' int StrCmp(char *str1, char *str2); ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsProcessDatagrams': /home/pbulk/build/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] Copy(&session->IPLocal, &packet->DstIP, sizeof(session->IPLocal)); ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' {aka 'const struct IP *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/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] Copy(&session->IPRemote, &packet->SrcIP, sizeof(session->IPRemote)); ^~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const IP *' {aka 'const struct IP *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsDetectMessageType': /home/pbulk/build/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] if (IsZero(packet->Header.Reserved, sizeof(packet->Header.Reserved)) == false) ~~~~~~~~~~~~~~^~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /home/pbulk/build/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 *'} bool IsZero(void *data, UINT size); ~~~~~~^~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsMSS': /home/pbulk/build/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] if (IsIP4(&session->IPRemote)) ^~~~~~~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1274:16: note: expected 'IP *' {aka 'struct IP *'} but argument is of type 'const IP *' {aka 'const struct IP *'} bool IsIP4(IP *ip); ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsIPCNew': /home/pbulk/build/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] StrCpy(param.ClientName, sizeof(param.ClientName), WgsName()); ^~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:9: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' UINT StrCpy(char *dst, UINT size, char *src); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsCreateTransportData': /home/pbulk/build/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] Copy(ret->EncapsulatedPacket, data, size); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const void *' void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsEncryptData': /home/pbulk/build/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] Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter)); ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /home/pbulk/build/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 unsigned int *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsDecryptData': /home/pbulk/build/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] Copy(iv + sizeof(iv) - sizeof(counter), &counter, sizeof(counter)); ^~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /home/pbulk/build/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 unsigned int *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsEphemeral': /home/pbulk/build/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] Copy(ephemeral_dst, ephemeral_src, WG_KEY_SIZE); ^~~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:8: /home/pbulk/build/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 *'} void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c: In function 'WgsHKDF': /home/pbulk/build/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] SetMdKey(md, chaining_key, WG_HASH_SIZE); ^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:11, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /home/pbulk/build/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 *'} bool SetMdKey(MD *md, void *key, UINT key_size); ~~~~~~^~~ /home/pbulk/build/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] MdProcess(md, secret, data, data_size); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:11, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto.h:7, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.h:4, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Proto_WireGuard.c:1: /home/pbulk/build/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 *'} UINT MdProcess(MD *md, void *dest, void *src, UINT size); ~~~~~~^~~ [ 74%] Building C object src/Cedar/CMakeFiles/cedar.dir/Protocol.c.o [ 75%] Building C object src/Cedar/CMakeFiles/cedar.dir/Radius.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ServerAccept': /home/pbulk/build/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] if (c->FirstSock != NULL && IsEmptyStr(c->FirstSock->SslVersion) == false) ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:97:23: note: expected 'char *' but argument is of type 'const char *' bool IsEmptyStr(char *str); ~~~~~~^~~ /home/pbulk/build/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] c->SslVersion = CopyStr(c->FirstSock->SslVersion); ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:80:7: note: expected 'char *' but argument is of type 'const char *' char *CopyStr(char *str); ^~~~~~~ /home/pbulk/build/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] if (s != NULL && IsLocalHostIP(&s->RemoteIP) == false) ^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Cedar.h:14, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Connection.h:11, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.h:11, from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:8: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Network.h:1282:24: note: expected 'IP *' {aka 'struct IP *'} but argument is of type 'const IP *' {aka 'const struct IP *'} bool IsLocalHostIP(IP *ip); ~~~~^~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c: In function 'ClientConnect': /home/pbulk/build/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] c->SslVersion = CopyStr(c->FirstSock->SslVersion); ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Protocol.c:42: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:80:7: note: expected 'char *' but argument is of type 'const char *' char *CopyStr(char *str); ^~~~~~~ [ 76%] Building C object src/Cedar/CMakeFiles/cedar.dir/Remote.c.o [ 77%] Building C object src/Cedar/CMakeFiles/cedar.dir/SM.c.o [ 77%] Building C object src/Cedar/CMakeFiles/cedar.dir/SW.c.o [ 78%] Building C object src/Cedar/CMakeFiles/cedar.dir/Sam.c.o [ 79%] Building C object src/Cedar/CMakeFiles/cedar.dir/SeLowUser.c.o [ 80%] Building C object src/Cedar/CMakeFiles/cedar.dir/SecureNAT.c.o [ 81%] Building C object src/Cedar/CMakeFiles/cedar.dir/Server.c.o [ 82%] Building C object src/Cedar/CMakeFiles/cedar.dir/Session.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiLoadConfigurationCfg': /home/pbulk/build/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] FOLDER *f = CfgGetFolder(f9, name); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:100:9: note: expected 'char *' but argument is of type 'const char *' FOLDER *CfgGetFolder(FOLDER *parent, char *name); ^~~~~~~~~~~~ /home/pbulk/build/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] StrCpy(wgk->Key, sizeof(wgk->Key), name); ^~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:36: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:34:41: note: expected 'char *' but argument is of type 'const char *' UINT StrCpy(char *dst, UINT size, char *src); ~~~~~~^~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiLoadProtoCfg': /home/pbulk/build/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] FOLDER *ff = CfgGetFolder(f, container->Name); ~~~~~~~~~^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:100:9: note: expected 'char *' but argument is of type 'const char * const' FOLDER *CfgGetFolder(FOLDER *parent, char *name); ^~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiWriteProtoCfg': /home/pbulk/build/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] FOLDER *ff = CfgCreateFolder(f, container->Name); ~~~~~~~~~^~~~~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:27: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Cfg.h:86:9: note: expected 'char *' but argument is of type 'const char * const' FOLDER *CfgCreateFolder(FOLDER *parent, char *name); ^~~~~~~~~~~~~~~ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c: In function 'SiCalledDeleteIpTable': /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:7754:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (IsInList(h->IpTable, (void *)key)) ^ /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Server.c:7756:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] IP_TABLE_ENTRY *e = (IP_TABLE_ENTRY *)key; ^ [ 83%] Building C object src/Cedar/CMakeFiles/cedar.dir/UT.c.o [ 83%] Building C object src/Cedar/CMakeFiles/cedar.dir/UdpAccel.c.o [ 84%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanUnix.c.o [ 85%] Building C object src/Cedar/CMakeFiles/cedar.dir/VLanWin32.c.o [ 86%] Building C object src/Cedar/CMakeFiles/cedar.dir/Virtual.c.o [ 87%] Building C object src/Cedar/CMakeFiles/cedar.dir/WaterMark.c.o [ 88%] Building C object src/Cedar/CMakeFiles/cedar.dir/WebUI.c.o [ 89%] Building C object src/Cedar/CMakeFiles/cedar.dir/WinUi.c.o [ 89%] Building C object src/Cedar/CMakeFiles/cedar.dir/Wpc.c.o /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c: In function 'DecodeSafe64': /home/pbulk/build/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] size = StrLen(src); ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:19: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Str.h:31:19: note: expected 'char *' but argument is of type 'const char *' UINT StrLen(char *str); ~~~~~~^~~ /home/pbulk/build/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] Copy(tmp, src, size); ^~~ In file included from /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/Cedar/Wpc.c:15: /home/pbulk/build/net/softether/work/SoftEtherVPN-5.02.5181/src/./Mayaqua/Memory.h:194:28: note: expected 'void *' but argument is of type 'const char *' void Copy(void *dst, void *src, UINT size); ~~~~~~^~~ [ 90%] Building C object src/Cedar/CMakeFiles/cedar.dir/__/__/3rdparty/BLAKE2/sse/blake2s.c.o [ 91%] Linking C shared library ../../libcedar.so [ 91%] Built target cedar [ 92%] Building C object src/vpnserver/CMakeFiles/vpnserver.dir/vpnserver.c.o [ 93%] Building C object src/vpnclient/CMakeFiles/vpnclient.dir/vpncsvc.c.o [ 94%] Linking C executable ../../vpnserver [ 94%] Linking C executable ../../vpnclient [ 94%] Built target vpnserver [ 95%] Building C object src/vpnbridge/CMakeFiles/vpnbridge.dir/vpnbridge.c.o [ 95%] Built target vpnclient [ 96%] Building C object src/vpncmd/CMakeFiles/vpncmd.dir/vpncmd.c.o [ 97%] Linking C executable ../../vpnbridge [ 98%] Linking C executable ../../vpncmd [ 98%] Built target vpncmd [ 98%] Built target vpnbridge [ 99%] Building C object src/vpntest/CMakeFiles/vpntest.dir/vpntest.c.o [100%] Linking C executable ../../vpntest [100%] Built target vpntest *** Please use pkgtools/verifypc to sanity check dependencies. => Creating /home/pbulk/build/net/softether/work/.rc.d/softether_bridge => Creating /home/pbulk/build/net/softether/work/.rc.d/softether_client => Creating /home/pbulk/build/net/softether/work/.rc.d/softether_server