File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -628,18 +628,18 @@ static int cmd_login_pkcs11(const char *args)
628628
629629 if (ret == 0 ) {
630630 printf ("Done.\r\n" );
631- printf ("Retrieving crypto engine function list ..." );
631+ printf ("Initializing token ..." );
632632 fflush (stdout );
633- ret = wolfpkcs11nsFunctionList .C_OpenSession (1 ,
634- CKF_SERIAL_SESSION | CKF_RW_SESSION ,
635- NULL , NULL , & session );
633+ ret = wolfpkcs11nsFunctionList .C_InitToken (1 ,
634+ (byte * )TokenPin , strlen (TokenPin ), (byte * )SoPinName );
636635 }
637636 if (ret == 0 ) {
638637 printf ("Done.\r\n" );
639- printf ("Initializing token ..." );
638+ printf ("Opening session ..." );
640639 fflush (stdout );
641- ret = wolfpkcs11nsFunctionList .C_InitToken (1 ,
642- (byte * )TokenPin , strlen (TokenPin ), (byte * )SoPinName );
640+ ret = wolfpkcs11nsFunctionList .C_OpenSession (1 ,
641+ CKF_SERIAL_SESSION | CKF_RW_SESSION ,
642+ NULL , NULL , & session );
643643 }
644644
645645 if (ret == 0 ) {
You can’t perform that action at this time.
0 commit comments