FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to openssl_sign with SHA256
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM
How to openssl_sign with SHA256
Posted: Wed Nov 25, 2015 01:18 AM
Hello!

I would like to implement the following php code in FWH 15.08 (bcc582) or 15.09 (bcc7)

Code (fw): Select all Collapse
$pkeyid = openssl_pkey_get_private( file_get_contents($cert_file), $cert_password);
openssl_sign($zoisrc, $zoisha256, $pkeyid, 'SHA256');


In contrib folder I found hbssl (https://github.com/harbour/core/tree/ma ... trib/hbssl)

How can I build the necessary lib-s? I would like to use the latest OpenSSL 1.0.2d

Thanks, Roman
© I'm not patented!
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to openssl_sign with SHA256
Posted: Wed Nov 25, 2015 08:29 AM

Roman,

Harbour uses its own hbmk2 to build, so I would try:

hbmk2.exe hbssl.hbp

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion