How to openssl_sign with SHA256

How to openssl_sign with SHA256

Postby modicr » Wed Nov 25, 2015 1:18 am

Hello!

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

Code: Select all  Expand view
$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!
User avatar
modicr
 
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia

Re: How to openssl_sign with SHA256

Postby Antonio Linares » Wed Nov 25, 2015 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

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