[BACK]Return to ssh-pkcs11-client.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/ssh-pkcs11-client.c between version 1.12 and 1.13

version 1.12, 2019/01/20 22:51:37 version 1.13, 2019/01/20 22:54:30
Line 237 
Line 237 
 pkcs11_start_helper(void)  pkcs11_start_helper(void)
 {  {
         int pair[2];          int pair[2];
           char *helper;
   
         if (pkcs11_start_helper_methods() == -1) {          if (pkcs11_start_helper_methods() == -1) {
                 error("pkcs11_start_helper_methods failed");                  error("pkcs11_start_helper_methods failed");
Line 258 
Line 259 
                 }                  }
                 close(pair[0]);                  close(pair[0]);
                 close(pair[1]);                  close(pair[1]);
                 execlp(_PATH_SSH_PKCS11_HELPER, _PATH_SSH_PKCS11_HELPER,                  helper = getenv("SSH_PKCS11_HELPER");
                     (char *)NULL);                  if (helper == NULL || strlen(helper) == 0)
                 fprintf(stderr, "exec: %s: %s\n", _PATH_SSH_PKCS11_HELPER,                          helper = _PATH_SSH_PKCS11_HELPER;
                     strerror(errno));                  execlp(helper, helper, (char *)NULL);
                   fprintf(stderr, "exec: %s: %s\n", helper, strerror(errno));
                 _exit(1);                  _exit(1);
         }          }
         close(pair[1]);          close(pair[1]);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13