mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-12 19:36:27 +08:00
OpenSession need a pointer of pointer
This commit is contained in:
@@ -103,7 +103,7 @@ int sdf_print_device_info(FILE *fp, int fmt, int ind, const char *lable, SDF_DEV
|
|||||||
void *hSession = NULL;
|
void *hSession = NULL;
|
||||||
DEVICEINFO devInfo;
|
DEVICEINFO devInfo;
|
||||||
|
|
||||||
if (SDF_OpenSession(dev->handle, hSession) != SDR_OK
|
if (SDF_OpenSession(dev->handle, &hSession) != SDR_OK
|
||||||
|| SDF_GetDeviceInfo(hSession, &devInfo) != SDR_OK) {
|
|| SDF_GetDeviceInfo(hSession, &devInfo) != SDR_OK) {
|
||||||
error_print();
|
error_print();
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
Reference in New Issue
Block a user