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

Diff for /src/usr.bin/ssh/ssh-rsa.c between version 1.63 and 1.64

version 1.63, 2017/12/18 02:25:15 version 1.64, 2017/12/18 23:14:34
Line 28 
Line 28 
 #define SSHKEY_INTERNAL  #define SSHKEY_INTERNAL
 #include "sshkey.h"  #include "sshkey.h"
 #include "digest.h"  #include "digest.h"
   #include "log.h"
   
 static int openssh_RSA_verify(int, u_char *, size_t, u_char *, size_t, RSA *);  static int openssh_RSA_verify(int, u_char *, size_t, u_char *, size_t, RSA *);
   
Line 218 
Line 219 
         /* XXX djm: need cert types that reliably yield SHA-2 signatures */          /* XXX djm: need cert types that reliably yield SHA-2 signatures */
         if (alg != NULL && strcmp(alg, sigtype) != 0 &&          if (alg != NULL && strcmp(alg, sigtype) != 0 &&
             strcmp(alg, "ssh-rsa-cert-v01@openssh.com") != 0) {              strcmp(alg, "ssh-rsa-cert-v01@openssh.com") != 0) {
                   error("%s: RSA signature type mismatch: "
                       "expected %s received %s", __func__, alg, sigtype);
                 ret = SSH_ERR_SIGNATURE_INVALID;                  ret = SSH_ERR_SIGNATURE_INVALID;
                 goto out;                  goto out;
         }          }

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64