Hi, It seems error code checking in pgtls_init() should follow the same convention as PG codebase adopts - i.e. the non-zero error code should be returned (instead of hard coded -1).
Please see the attached patch. Thanks
tls-init-error-handling.patch
Description: Binary data