https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295336

--- Comment #4 from Pouria Mousavizadeh Tehrani <[email protected]> ---
It seems the lib_contains_symbol function fails to verify the existence of the
C_GetFunctionList symbol using nlist(3) in PKCS11 libraries.

% grep -A2 C_GetFunctionList crypto/openssh/ssh-pkcs11.c
if (lib_contains_symbol(provider_id, "C_GetFunctionList") != 0) {
error("provider %s is not a PKCS11 library", provider_id);
goto fail;

But I can see it exists:
```
elfdump -s /usr/local/lib/libykcs11.so | grep -A4 -B1 C_GetFunctionList
entry: 240
st_name: C_GetFunctionList
st_value: 0x136e0
st_size: 157
st_info: STT_FUNC STB_GLOBAL
st_shndx: 13
```

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to