Bug #5170 - make pkey_eq testable, introduce test_tortls.c