mezen / Indy

Indy - Internet Direct
7 stars 6 forks source link

Unit dynamc/IdOpenSSLHeaders_conf does not compile with fpc #15

Open MWASoftware opened 9 months ago

MWASoftware commented 9 months ago

This issue applies to branch NewOpenSSL_PR

Line 164 is: NCONF_dump_bio: function(const conf: PCONf; out: PBIO): TIdC_INT cdecl = nil;

FPC complains about the ':' after the reserved word "out". Either the ':' is wrong (this is an "out" argument) or "out" needs to changed to a non-reserved word.

In the original .h file, the declaration is

int CONF_dump_bio(LHASH_OF(CONF_VALUE) conf, BIO out);

Hence it looks "out" was simply copied as the argument name from the 'C' header file. It is proposed to fix the compile time issue by changing line 164 to

NCONF_dumpbio: function(const conf: PCONf; out: PBIO): TIdC_INT cdecl = nil;