version 1.17, 2020/04/28 04:02:29 |
version 1.18, 2020/05/13 09:57:17 |
|
|
|
|
/* #define SK_DEBUG 1 */ |
/* #define SK_DEBUG 1 */ |
|
|
|
#ifdef SK_DEBUG |
|
#define SSH_FIDO_INIT_ARG FIDO_DEBUG |
|
#else |
|
#define SSH_FIDO_INIT_ARG 0 |
|
#endif |
|
|
#define MAX_FIDO_DEVICES 256 |
#define MAX_FIDO_DEVICES 256 |
|
|
/* Compatibility with OpenSSH 1.0.x */ |
/* Compatibility with OpenSSH 1.0.x */ |
|
|
int r; |
int r; |
char *device = NULL; |
char *device = NULL; |
|
|
#ifdef SK_DEBUG |
fido_init(SSH_FIDO_INIT_ARG); |
fido_init(FIDO_DEBUG); |
|
#endif |
|
if (enroll_response == NULL) { |
if (enroll_response == NULL) { |
skdebug(__func__, "enroll_response == NULL"); |
skdebug(__func__, "enroll_response == NULL"); |
goto out; |
goto out; |
|
|
int ret = SSH_SK_ERR_GENERAL; |
int ret = SSH_SK_ERR_GENERAL; |
int r; |
int r; |
|
|
#ifdef SK_DEBUG |
fido_init(SSH_FIDO_INIT_ARG); |
fido_init(FIDO_DEBUG); |
|
#endif |
|
|
|
if (sign_response == NULL) { |
if (sign_response == NULL) { |
skdebug(__func__, "sign_response == NULL"); |
skdebug(__func__, "sign_response == NULL"); |
|
|
char *device = NULL; |
char *device = NULL; |
*rksp = NULL; |
*rksp = NULL; |
*nrksp = 0; |
*nrksp = 0; |
|
|
|
fido_init(SSH_FIDO_INIT_ARG); |
|
|
if (check_sign_load_resident_options(options, &device) != 0) |
if (check_sign_load_resident_options(options, &device) != 0) |
goto out; /* error already logged */ |
goto out; /* error already logged */ |