BN_ULONG is just another way of saying unsigned long. But redefined because it's C & for different compilers/platforms i think.
in that case, use d: PCardinal or pcULong (in ctypes - probably better)
As in, is this right "way" to convert parameter & return value..? char *BN_bn2hex(const BIGNUM *a); function BN_Bn2Hex(a:BNPtr):PChar; // here BNPtr is of type BNPtr:^BIGNUM
that looks o.k. rather use "const a:BNPtr", though. henry _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal