Crear HBSSL.LIB con CMS para firma de Xml

Crear HBSSL.LIB con CMS para firma de Xml

Postby acuellar » Wed May 31, 2023 4:07 pm

Estimado Antonio
He realizado todos los pasos que indica aquí
https://fivetechsupport.com/forums/viewtopic.php?p=259427&sid=f26a5a76b5af134a3c70f65705e3edad#p259427
hbssl.hbp
Code: Select all  Expand view

# Keep them at top
-depimplibs=openssl:../out32dll/libeay32.dll
-depimplibs=openssl:../out32dll/ssleay32.dll
-depimplibs=openssl:../dll/libeay32.dll
-depimplibs=openssl:../dll/ssleay32.dll
-depimplibs=openssl:../libeay32.dll
-depimplibs=openssl:../ssleay32.dll
-depimplibs=openssl:../bin/libcrypto-3.dll    
-depimplibs=openssl:../bin/libssl-3.dll        
-depimplibs=openssl:../bin/libcrypto-1_1-x64.dll
-depimplibs=openssl:../bin/libssl-1_1-x64.dll

hbssl.hbm

{allwin&HBMK_HAS_OPENSSL}-cflag=-I${HB_WITH_OPENSSL}/../inc32

-iflag={bcc}-a

{hbdyn&win}-instfile=depimplibsrc:${HBMK_DIR_OPENSSL}/../bin/*.dll  

hbssls.hbp


En el hbssl.HBM incluyo cms.c y cms_singfile_pfx.c
Code: Select all  Expand view

-stop{wce}

-hblib
-inc

-o${hb_targetname}
-workdir=${hb_work}/${hb_plat}/${hb_comp}/${hb_targetname}

-w3 -es2

-depkeyhead=openssl:openssl/ssl.h
-depcontrol=openssl:no{HB_BUILD_3RDEXT='no'}
-depcontrol=openssl:${HB_WITH_OPENSSL}
-depincpath=openssl:/usr/local/opt/openssl/include
-depincpath=openssl:/usr/local/opt/libressl/include
-depincpath=openssl:/usr/include
-depincpath=openssl:/usr/local/include
-depincpath=openssl:/usr/local/ssl/include
-depincpath=openssl:/boot/common/include
-depincpath=openssl:/usr/pkg/include
-depfinish=openssl

{darwin}-cflag=-DOPENSSL_NO_SHA256
{darwin}-cflag=-DOPENSSL_NO_SHA512
{darwin}-cflag=-DOPENSSL_NO_CAMELLIA
{darwin}-cflag=-DOPENSSL_NO_DGRAM
{darwin}-cflag=-DHB_OPENSSL_OLD_OSX_

# Patent expires in 2010/2011
-cflag=-DOPENSSL_NO_IDEA

# to suppress Apple's deprecation warnings that apply to
# the complete OpenSSL API, starting with OS X Lion 10.7
-cflag={allgcc&darwin}-Wno-deprecated

# For _fileno() in openssl/applink.c
-c=gnu90

hbssl.hbx

ssl_hbcon.prg

ssl_hb.c
ssl_inet.c
ssl_sock.c
bio.c
err.c
evp.c
evpciph.c
evpenc.c
evpmd.c
evppkey.c
pem.c
rand.c
ssl.c
sslciph.c
sslctx.c
sslsess.c
x509.c
cms_singfile_pfx.c
cms.c


El resultado
Code: Select all  Expand view

D:\Sistemas\Compiler\Harbour\contrib\hbssl>set path=D:\Sistemas\Compiler\BCC7\bin

D:\Sistemas\Compiler\Harbour\contrib\hbssl>set HB_WITH_OPENSSL=D:\Sistemas\Compiler\OpenSSL\include

D:\Sistemas\Compiler\Harbour\contrib\hbssl>set HB_STATIC_OPENSSL=yes

D:\Sistemas\Compiler\Harbour\contrib\hbssl>D:\Sistemas\Compiler\Harbour\bin\hbmk2 hbssl.hbp -cflag+=-w-
hbmk2: Building sub-project (level 2): hbssls.hbp
hbmk2: Dependency 'openssl' found: D:\Sistemas\Compiler\OpenSSL\include
hbmk2: Target up to date: hbssls.lib
hbmk2: Dependency 'openssl' found: D:\Sistemas\Compiler\OpenSSL\include

Embarcadero Implib Version 3.4.0 Copyright (c) 1991-2016 Embarcadero Technologies, Inc.
hbmk2: Created import library: libcrypto-3.lib <=
       D:\Sistemas\Compiler\OpenSSL\bin\libcrypto-3.dll

Embarcadero Implib Version 3.4.0 Copyright (c) 1991-2016 Embarcadero Technologies, Inc.
hbmk2: Created import library: libssl-3.lib <=
       D:\Sistemas\Compiler\OpenSSL\bin\libssl-3.dll
hbmk2: Target up to date: hbssl.lib
 

Movi las librerÍas creadas en HARBOUR\LIB
libcrypto-3.lib, libssl-3.lib, hbssl.lib, hbssl.lib

El ,hbp
Code: Select all  Expand view

firmaxml.prg

-ID:\Sistemas\Compiler\FWH\include

-LD:\SISTEMAS\COMPILER\FWH\LIB\
-lfiveh
-lfivehc
-llibeay32
-lssleay32
-llibcrypto-3
-llibssl-3
-lhbssls
-gtgui

xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbssl.hbc
 

Compilo y me siguen saliendo errores
Code: Select all  Expand view

--------------------Configuración: firmaXml - Release--------------------
Turbo Incremental Link 6.90 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_OPENSSL_init_ssl' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_OpenSSL_version' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_OpenSSL_version_num' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_CTX_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_TLS_server_method' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_TLS_client_method' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_TLS_method' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_new' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_ssl_version' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_get_timeout' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_timeout' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_cipher_list' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_add_session' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_SESSION_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslsess
Error: Unresolved external '_SSL_SESSION_new' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslsess
Error: Unresolved external '_SSL_SESSION_set_time' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslsess
Error: Unresolved external '_SSL_SESSION_set_timeout' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslsess
Error: Unresolved external '_SSL_SESSION_get_time' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslsess
Error: Unresolved external '_SSL_SESSION_get_timeout' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslsess
Error: Unresolved external '_SSL_CTX_remove_session' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_flush_sessions' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_check_private_key' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_get_quiet_shutdown' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_get_verify_mode' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_get_options' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_options' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_quiet_shutdown' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_use_certificate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_add_client_CA' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_get_client_CA_list' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_OPENSSL_sk_num' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_OPENSSL_sk_value' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_X509_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|x509
Error: Unresolved external '_X509_get_subject_name' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|x509
Error: Unresolved external '_X509_get_issuer_name' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|x509
Error: Unresolved external '_X509_NAME_oneline' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|x509
Error: Unresolved external '_X509_get_pubkey' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|x509
Error: Unresolved external '_SSL_CTX_ctrl' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_use_certificate_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_use_certificate_chain_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_use_PrivateKey_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_use_RSAPrivateKey_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_use_RSAPrivateKey_ASN1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_use_PrivateKey_ASN1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_use_certificate_ASN1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_EVP_PKEY_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evppkey
Error: Unresolved external '_EVP_PKEY_new' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evppkey
Error: Unresolved external '_EVP_PKEY_type' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evppkey
Error: Unresolved external '_EVP_PKEY_get_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evppkey
Error: Unresolved external '_EVP_PKEY_get_bits' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evppkey
Error: Unresolved external '_CRYPTO_malloc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evp
Error: Unresolved external '_OPENSSL_init_crypto' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evp
Error: Unresolved external '_ERR_load_EVP_strings' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evp
Error: Unresolved external '_EVP_CIPHER_CTX_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_128_gcm' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_192_gcm' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_256_gcm' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_enc_null' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede3' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede3_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_cfb64' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_cfb1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_cfb8' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede_cfb64' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede3_cfb64' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede3_cfb1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede3_cfb8' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede3_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_des_ede3_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_desx_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_rc4' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_rc4_40' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_rc2_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_rc2_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_rc2_40_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_rc2_64_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_rc2_cfb64' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_rc2_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_bf_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_bf_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_bf_cfb64' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_bf_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_cast5_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_cast5_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_cast5_cfb64' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_cast5_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_128_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_128_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_128_cfb1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_128_cfb8' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_128_cfb128' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_128_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_192_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_192_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_192_cfb1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_192_cfb8' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_192_cfb128' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_192_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_256_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_256_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_256_cfb1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_256_cfb8' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_256_cfb128' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_aes_256_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_128_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_128_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_128_cfb1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_128_cfb8' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_128_cfb128' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_128_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_192_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_192_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_192_cfb1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_192_cfb8' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_192_cfb128' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_192_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_256_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_256_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_256_cfb1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_256_cfb8' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_256_cfb128' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_camellia_256_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_seed_ecb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_seed_cbc' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_seed_cfb128' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_seed_ofb' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_OBJ_nid2sn' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_get_cipherbyname' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_nid' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_block_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_key_length' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_flags' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_mode' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_type' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_new' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_reset' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_set_padding' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_get_key_length' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_set_key_length' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_ctrl' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_cipher' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_EncryptInit' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_EncryptInit_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_EncryptFinal' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_EncryptFinal_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_DecryptInit' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_DecryptInit_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_DecryptFinal' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_DecryptFinal_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CipherInit' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CipherInit_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CipherUpdate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CipherFinal' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CipherFinal_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_SealInit' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_EncryptUpdate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_SealFinal' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_iv_length' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_OpenInit' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_DecryptUpdate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_get_block_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_OpenFinal' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_MD_CTX_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_md_null' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_md4' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_md5' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_sha1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_sha224' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_sha256' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_sha384' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_sha512' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_mdc2' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_ripemd160' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_get_digestbyname' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_get_type' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_get_pkey_type' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_get_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_get_block_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_CTX_new' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_CTX_reset' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_CTX_md' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_CTX_copy' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_CTX_copy_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_DigestFinal' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_DigestFinal_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_SignFinal' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_DigestInit' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_DigestInit_ex' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_DigestUpdate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_VerifyFinal' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_BytesToKey' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evp
Error: Unresolved external '_EVP_PKEY_assign' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evppkey
Error: Unresolved external '_SSL_CTX_use_PrivateKey' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_load_verify_locations' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_default_verify_paths' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_new' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_dup' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_accept' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_clear' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_pending' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_BIO_s_null' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_s_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_s_mem' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_s_socket' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_s_connect' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_s_accept' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_s_fd' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_s_bio' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_s_datagram' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_f_null' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_f_buffer' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_f_nbio_test' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_new' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_clear_flags' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_int_ctrl' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_get_retry_reason' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_set_flags' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_test_flags' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_ctrl_pending' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_ctrl_wpending' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_new_socket' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_new_dgram' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_new_fd' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_new_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_new_mem_buf' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_read' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_gets' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_write' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_puts' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_new_connect' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_new_accept' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_ptr_ctrl' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_ADDR_rawport' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_BIO_ctrl' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_ERR_load_BIO_strings' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|bio
Error: Unresolved external '_SSL_set_bio' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_rbio' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_wbio' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_connect' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_shutdown' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_version' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_version' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_do_handshake' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_renegotiate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_fd' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_rfd' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_wfd' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_read' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_peek' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_want' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_write' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_ssl_method' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_ssl_method' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_CIPHER_get_bits' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_cipher_list' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_cipher_list' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_CIPHER_get_name' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_current_cipher' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_CIPHER_get_version' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_copy_session_id' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_shared_ciphers' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_alert_desc_string' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_alert_desc_string_long' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_alert_type_string' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_alert_type_string_long' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_rstate_string' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_check_private_key' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_error' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_fd' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_rfd' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_wfd' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_quiet_shutdown' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_shutdown' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_state' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_verify_mode' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_in_before' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_is_server' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_in_init' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_is_init_finished' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_default_timeout' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_verify_result' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_session_reused' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_accept_state' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_connect_state' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_options' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_options' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_verify' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_quiet_shutdown' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_read_ahead' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_shutdown' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_verify_result' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_certificate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get1_peer_certificate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_use_certificate' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_add_client_CA' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_use_certificate_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_use_PrivateKey_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_use_RSAPrivateKey_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_ciphers' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_get_client_CA_list' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_load_client_CA_file' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_use_RSAPrivateKey_ASN1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_use_PrivateKey_ASN1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_use_certificate_ASN1' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_use_PrivateKey' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_ctrl' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_set_msg_callback' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_PEM_read_bio_X509' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|cms
Error: Unresolved external '_PEM_read_bio_PrivateKey' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|cms
Error: Unresolved external '_X509_check_private_key' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|cms
Error: Unresolved external '_CMS_sign' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|cms
Error: Unresolved external '_CMS_add1_signer' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|cms
Error: Unresolved external '_CMS_final' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|cms
Error: Unresolved external '_i2d_CMS_bio_stream' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|cms
Error: Unresolved external '_CMS_ContentInfo_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|cms
Error: Unable to perform link
"D:\Sistemas\IRRIGACION\ALMACEN\FirmaXml\\firmaXml.EXE" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
Archivo eliminado: D:\Sistemas\IRRIGACION\ALMACEN\FirmaXml\firmaXml.map
Archivo eliminado: D:\Sistemas\IRRIGACION\ALMACEN\FirmaXml\firmaXml.tds
Archivo eliminado: D:\Sistemas\IRRIGACION\ALMACEN\FirmaXml\firmaXml.udp
firmaXml.EXE - 325 error(es), 0 advertencia(s)

 


Disculpas por las molestias, Gracias por la ayuda
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby Antonio Linares » Thu Jun 01, 2023 7:14 am

Prueba a enlazar c:\OpenSSL-Win32\lib\libcrypto.lib y c:\OpenSSL-Win32\lib\libssl.lib
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby acuellar » Thu Jun 01, 2023 1:54 pm

Muchas gracias estimado Antonio

Me las rechaza, parece que son para MSVC :( Dónde se puede obtener para BCC o cómo se convierten
Code: Select all  Expand view

Error: 'D:\SISTEMAS\COMPILER\HARBOUR\LIB\LIBCRYPTO.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
Error: 'D:\SISTEMAS\COMPILER\HARBOUR\LIB\LIBSSL.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
 


He intentado crear la HBSSL,LIB para MSVC de ésta manera
Code: Select all  Expand view

set path=D:\Sistemas\Compiler\VS2022\bin

set HB_COMPILER=msvc
set HB_BUILD_MODE=c
set HB_USER_PRGFLAGS=-l-
set HB_BUILD_CONTRIBS

set HB_WITH_OPENSSL=D:\Sistemas\Compiler\OpenSSL\include
set HB_WITH_CURL=D:\Sistemas\Compiler\OpenSSL\Curl\include
set HB_OPENSSL_STATIC=yes      
set HB_STATIC_OPENSSL=yes  
set HB_STATIC_CURL=yes
set HB_WITH_LIBHARU
set HB_BUILD_DYN=no
set HB_BUILD_CONTRIB_DYN=no

rem win-make.exe

D:\Sistemas\Compiler\HarbourVS\bin\hbmk2 hbssl.hbp -comp=msvc
pause
 

Me da éstos errores :(
Code: Select all  Expand view

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set path=D:\Sistemas\Compiler\VS2022\bin

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set VCDIR=D:\Sistemas\Compiler\VS2022\Include

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_COMPILER=msvc

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_BUILD_MODE=c

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_USER_PRGFLAGS=-l-

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_BUILD_CONTRIBS
Variable de entorno HB_BUILD_CONTRIBS no definida

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_WITH_OPENSSL=D:\Sistemas\Compiler\OpenSSL\include

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_WITH_CURL=D:\Sistemas\Compiler\OpenSSL\Curl\include

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_OPENSSL_STATIC=yes

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_STATIC_OPENSSL=yes

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_STATIC_CURL=yes

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_WITH_LIBHARU
Variable de entorno HB_WITH_LIBHARU no definida

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_BUILD_DYN=no

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>set HB_BUILD_CONTRIB_DYN=no

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>rem win-make.exe

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>D:\Sistemas\Compiler\HarbourVS\bin\hbmk2 hbssl.hbp -comp=msvc
hbmk2: Processing environment options: -comp=msvc
hbmk2: Building sub-project (level 2): hbssls.hbp
hbmk2: Processing environment options: -comp=msvc
hbmk2: Dependency 'openssl' found: D:\Sistemas\Compiler\OpenSSL\include
hbmk2: Compiling...
hbssl.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
ssl_hbcon.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
ssl_hb.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
ssl_inet.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
ssl_sock.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
bio.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
err.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
evp.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
evpciph.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
evpenc.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
evpmd.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
evppkey.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
pem.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
rand.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
ssl.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
sslciph.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
sslctx.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
sslsess.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
x509.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
cms.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
Generando código...
Compilando...
cms_singfile_pfx.c
D:\Sistemas\Compiler\HarbourVS\include\string.h(14): fatal error C1083: No se puede abrir el archivo incluir: 'corecrt_wstring.h': No such file or directory
Generando código...
hbmk2[hbssls]: Error: Running C/C++ compiler. 2
cl.exe -nologo -c -O2  -DHBMK_HAS_OPENSSL -DOPENSSL_NO_IDEA -DHB_OPENSSL_STATIC -W4 -wd4127 -Fo.hbmk\win\msvc\hbssls\ -ID:\Sistemas\Compiler\HarbourVS\include -ID:\Sistemas\Compiler\OpenSSL\include .hbmk\win\msvc\hbssls\hbssl.c .hbmk\win\msvc\hbssls\ssl_hbcon.c ssl_hb.c ssl_inet.c ssl_sock.c bio.c err.c evp.c evpciph.c evpenc.c evpmd.c evppkey.c pem.c rand.c ssl.c sslciph.c sslctx.c sslsess.c x509.c cms.c cms_singfile_pfx.c

D:\Sistemas\Compiler\HarbourVS\contrib\hbssl>pause
Presione una tecla para continuar . . .
 

Cómo se pone para agregar D:\Sistemas\Compiler\VS2022\include
He intentado así set HB_WITH_MVSC=D:\Sistemas\Compiler\VS2022\include
y no funciona :(

Gracias por la ayuda y tu tiempo
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby acuellar » Thu Jun 01, 2023 8:09 pm

Estimado Antonio

He descargado de aquí
https://github.com/mrfearless/libraries/tree/master/OpenSSL/OpenSSL%20x86

y tampoco da :( :(

Porfa necesito tu ayuda
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby karinha » Fri Jun 02, 2023 1:55 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7824
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby acuellar » Fri Jun 02, 2023 2:46 pm

Muchas Gracias Estimado Joao

Lo descargué y lo probé, y me salen los mismos errores :(

Me parece que no es por el HARBOUR.

He realizado muchas pruebas y nada :(

Logré crearla con MSVC y me da otros errores :(

Code: Select all  Expand view

 Creando biblioteca firmaxml.lib y objeto firmaxml.exp
LINK : warning LNK4098: la biblioteca predeterminada'MSVCRT' entra en conflicto con otras bibliotecas; use la biblioteca /NODEFAULTLIB:biblioteca
FiveHC32.lib(GDIPFWH.obj) : error LNK2019: s¡mbolo externo _GdipAlloc@4 sin resolver al que se hace referencia en la funci¢n "public: static void * __cdecl Gdiplus::GdiplusBase::operator new(unsigned int)" (??2GdiplusBase@Gdiplus@@SAPAXI@Z)
FiveHC32.lib(GDIPLUS.obj) : error LNK2001: s¡mbolo externo _GdipAlloc@4 sin resolver
FiveHC32.lib(GDIPFWH.obj) : error LNK2019: s¡mbolo externo _GdipFree@4 sin resolver al que se hace referencia en la funci¢n "public: static void __cdecl Gdiplus::GdiplusBase::operator delete(void *)" (??3GdiplusBase@Gdiplus@@SAXPAX@Z)
FiveHC32.lib(GDIPLUS.obj) : error LNK2001: s¡mbolo externo _GdipFree@4 sin resolver
FiveHC32.lib(GDIPFWH.obj) : error LNK2019: s¡mbolo externo _GdipCreatePath@8 sin resolver al que se hace referencia en la funci¢n "public: __thiscall
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _OpenSSL_version_num sin resolver al que se hace referencia en la funci¢n _HB_FUN_OPENSSL_VERSION_NUM
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _OpenSSL_version sin resolver al que se hace referencia en la funci¢n _HB_FUN_OPENSSL_VERSION
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _SSL_get_options sin resolver al que se hace referencia en la funci¢n _HB_FUN_SSL_GET_OPTIONS
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _SSL_set_options sin resolver al que se hace referencia en la funci¢n _HB_FUN_SSL_SET_OPTIONS
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _SSL_in_init sin resolver al que se hace referencia en la funci¢n _HB_FUN_SSL_IN_ACCEPT_INIT
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _SSL_in_before sin resolver al que se hace referencia en la funci¢n _HB_FUN_SSL_IN_BEFORE
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _SSL_is_init_finished sin resolver al que se hace referencia en la funci¢n _HB_FUN_SSL_IS_INIT_FINISHED
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _SSL_get1_peer_certificate sin resolver al que se hace referencia en la funci¢n _HB_FUN_SSL_GET_PEER_CERTIFICATE
hbssl.lib(ssl.obj) : error LNK2019: s¡mbolo externo _TLS_method sin resolver al que se hace referencia en la funci¢n _HB_FUN_SSL_GET_SSL_METHOD
hbmk2[firmaxmlVS]: Error: Running linker. 1120
link.exe @C:\Users\acuellar\AppData\Local\Temp\0j2hne.lnk

hbmk2: Hint: Add option 'hbssl.hbc' for missing function(s):
       EVP_CIPHER_CTX_reset(), EVP_CIPHER_CTX_key_length(), EVP_CipherFinal(),
       EVP_CIPHER_type(), EVP_CIPHER_mode(), EVP_CIPHER_flags(),
       EVP_CIPHER_iv_length(), EVP_CIPHER_key_length(),
       EVP_CIPHER_block_size(), EVP_CIPHER_nid(), EVP_MD_CTX_reset(),
       EVP_MD_CTX_create(), EVP_MD_block_size(), EVP_MD_size(),
       EVP_MD_pkey_type(), EVP_MD_nid(), EVP_PKEY_size(), EVP_PKEY_bits(),
       BIO_get_conn_int_port(), SSL_CTX_set_options(), SSL_CTX_get_options(),
       SSL_init(), SSL_SESSION_reused(), SSL_get_state(), SSL_get_ssl_method(),
       SSL_get_peer_certificate(), SSL_is_init_finished(), SSL_in_before(),
       SSL_in_accept_init(), SSL_set_options(), SSL_get_options(),
       OpenSSL_version(), OpenSSL_version_num(), SSL_get_ciphers()
hbmk2: Error: Referenced, missing, but unknown function(s): GDIPLUSSTARTUP(),
       GDIPLUSSHUTDOWN(), REDLLVERSION5(), REPASTESPECIAL5(), HB_CMS_SIGNFILE()

D:\Sistemas\IRRIGACION\ALMACEN\FirmaXml>pause
Presione una tecla para continuar . . .


Ya estoy por tirar la toalla. Pero no me va a vencer :D

Espero que otro pueda hacer pruebas
De aqui se descarga el OPENSSL
https://slproweb.com/products/Win32OpenSSL.html //Descargar el full
De aqui los archivos .C
https://github.com/FiveTechSoft/FWH_tools/raw/master/Raul_signfile.zip

Modificar el harbour\contrib\hbssl\hbssl.hbp
Code: Select all  Expand view

# Keep them at top
-depimplibs=openssl:../out32dll/libeay32.dll
-depimplibs=openssl:../out32dll/ssleay32.dll
-depimplibs=openssl:../dll/libeay32.dll
-depimplibs=openssl:../dll/ssleay32.dll
-depimplibs=openssl:../libeay32.dll
-depimplibs=openssl:../ssleay32.dll
-depimplibs=openssl:../bin/libcrypto-3.dll     << this name is changed
-depimplibs=openssl:../bin/libssl-3.dll           << this name is changed
-depimplibs=openssl:../bin/libcrypto-1_1-x64.dll
-depimplibs=openssl:../bin/libssl-1_1-x64.dll

hbssl.hbm

{allwin&HBMK_HAS_OPENSSL}-cflag=-I${HB_WITH_OPENSSL}/../inc32

-iflag={bcc}-a

{hbdyn&win}-instfile=depimplibsrc:${HBMK_DIR_OPENSSL}/../bin/*.dll    << this is required to create the import libraries

hbssls.hbp




Aumentar en harbour\contrib\hbssl\hbssl.hbm
Estos archivos
cms.c
cms_singfile_pfx.c

Crear el go.bat con
Code: Select all  Expand view

set path=D:\Sistemas\Compiler\BCC7\bin
set HB_WITH_OPENSSL=D:\Sistemas\Compiler\OpenSSL\include
set HB_STATIC_OPENSSL=yes      
D:\Sistemas\Compiler\Harbour\bin\hbmk2 hbssl.hbp -cflag+=-w-
pause
 


Muchas gracias por la ayuda
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby Antonio Linares » Fri Jun 02, 2023 3:55 pm

Añade hbssl.hbc en el fichero hbp y veamos que errores aparecen
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby acuellar » Fri Jun 02, 2023 4:35 pm

Gracias estimado Antonio

este es el .hbp
Code: Select all  Expand view

firmaxml.prg

-ID:\Sistemas\Compiler\FWH\include

-LD:\SISTEMAS\COMPILER\FWH\LIB\
-lfiveh
-lfivehc
-llibcrypto-3
-llibssl-3
-llibeay32
-lssleay32
#-llibcrypto
#-llibssl
-gtgui

xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbssl.hbc
 


y da éstos errores
Code: Select all  Expand view

rbo Incremental Link 6.90 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_OPENSSL_init_ssl' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|ssl
Error: Unresolved external '_SSL_CTX_free' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_TLS_server_method' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_TLS_client_method' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_TLS_method' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_new' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_ssl_version' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_get_timeout' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_timeout' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_set_cipher_list' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
Error: Unresolved external '_SSL_CTX_add_session' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|sslctx
 


Gracias por la ayuda
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby Antonio Linares » Sat Jun 03, 2023 6:53 am

Al construir Harbour hbssl me aparecen muchos warnings W8080 que finalmente procesa como error

He conseguido deshabilitar este warning modificando hbssl.hbm y añadiendo esto:
-cflag+=-w-8080

tambien he añadido estas líneas en hbssl.hbp:
-depimplibs=openssl:../bin/libcrypto-3.dll
-depimplibs=openssl:../bin/libssl-3.dll

y las librerias de importación se han creado correctamente :-)

Aqui tienes todas las librerías:
https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_bcc32_hbssl.zip
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby Antonio Linares » Sat Jun 03, 2023 7:50 am

Los símbolos de las librerías de importación no llevan subrayado delante de ahi que no se encuentren los símbolos

Tenemos que ver que flag usar para se añadan los subrayados al principio...
c:\bcc7\bin\implib

Embarcadero Implib Version 3.3.0 Copyright (c) 1991-2014 Embarcadero Technologies, Inc.

Syntax: IMPLIB [options] libname[.lib] [@respfile | srcname] [srcname ...]
Options:
-a Add '_' alias for MS flavor cdecl functions
-aa Force the alias even if the function already starts with '_'
-c Case sensitive symbols
-f Force imports by name (with hints)
-s Don't convert stdcall names from Microsoft mangling
-w No Warnings

Respfile may contain a list of source files to process.
Wildcards are ok for .DLL and .DEF file names.

Parece que -a
Ahora a ver como darle ese flag a hbmk2...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby Antonio Linares » Sat Jun 03, 2023 8:25 am

el flag a incluir en hbssl.hbm es:

-iflag=-a

pero parece que no lo usa. Asi que finamente lo más sencillo es crearlas a mano:

c:\bcc7\bin\implib -a libcrypto-3.lib libcrypto-3.dll
c:\bcc7\bin\implib -a libssl-3.lib libssl-3.dll

ahora si incluyen los subrayados iniciales y deberían funcionar :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby Antonio Linares » Sat Jun 03, 2023 8:33 am

funcionando! :-)

test.prg
Code: Select all  Expand view
function Main()

   SSL_Init()

return nil

go.bat
Code: Select all  Expand view
set path=c:\bcc7\bin
c:\harbour\bin\win\bcc\hbmk2 test.prg hbssl.hbc -llibssl-3 -llibcrypto-3

El EXE se construye correctamente :-D
Librerías actualizadas en: https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_bcc32_hbssl.zip
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby acuellar » Sat Jun 03, 2023 10:41 am

Muchas Gracias estimado Antonio

Ya casi :(
Me da éstos errores
Code: Select all  Expand view

D:\Sistemas\IRRIGACION\ALMACEN\FirmaXml>set path=D:\Sistemas\Compiler\BCC7\bin

D:\Sistemas\IRRIGACION\ALMACEN\FirmaXml>D:\Sistemas\Compiler\Harbour\bin\hbmk2 test.prg hbssl.hbc -llibssl-3 -llibcrypto-3
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'test.prg'...
Lines 5, Functions/Procedures 1
Generating C source output to 'C:\Users\acuellar\AppData\Local\Temp\hbmk_etxz95.dir\test.c'... Done.
C:\Users\acuellar\AppData\Local\Temp\hbmk_etxz95.dir\test.c:
Turbo Incremental Link 6.90 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_EVP_PKEY_get_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evppkey
Error: Unresolved external '_EVP_PKEY_get_bits' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evppkey
Error: Unresolved external '_EVP_CIPHER_get_nid' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_block_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_key_length' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_flags' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_mode' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_type' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_get_key_length' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_get_iv_length' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_CIPHER_CTX_get_block_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpciph
Error: Unresolved external '_EVP_MD_get_type' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_get_pkey_type' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_get_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unresolved external '_EVP_MD_get_block_size' referenced from D:\SISTEMAS\COMPILER\HARBOUR\LIB\HBSSL.LIB|evpmd
Error: Unable to perform link
hbmk2: Error: Running linker. 2
ilink32.exe @C:\Users\acuellar\AppData\Local\Temp\ckime8.lnk
 


Gracias por la ayuda y tu tiempo.
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby acuellar » Sat Jun 03, 2023 11:27 am

Estimado Antonio

Compilando con el editor UEstudio no da error y funciona perfecto :D

Porfa me podrías pasar las libs para MSVS incluidos cms.c y cms_singfile_pfx.c en HBSSL.LIB

Muchísimas gracias estimado.
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1643
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: Crear HBSSL.LIB con CMS para firma de Xml

Postby Antonio Linares » Sat Jun 03, 2023 8:45 pm

> cms.c y cms_singfile_pfx.c en HBSSL.LIB

esos ficheros no estan en el repo de Harbour. Tendrás que compilarlos y enlazarlos en tu app.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 83 guests