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

Diff for /src/usr.bin/ssh/ssh_api.c between version 1.28 and 1.29

version 1.28, 2024/01/09 21:39:14 version 1.29, 2024/05/17 00:30:24
Line 25 
Line 25 
 #include "log.h"  #include "log.h"
 #include "authfile.h"  #include "authfile.h"
 #include "sshkey.h"  #include "sshkey.h"
   #include "dh.h"
 #include "misc.h"  #include "misc.h"
 #include "ssh2.h"  #include "ssh2.h"
 #include "version.h"  #include "version.h"
Line 45 
Line 46 
     u_char **, size_t *, const u_char *, size_t, const char *);      u_char **, size_t *, const u_char *, size_t, const char *);
   
 /*  /*
  * stubs for the server side implementation of kex.   * stubs for privsep calls in the server side implementation of kex.
  * disable privsep so our stubs will never be called.  
  */   */
 int     use_privsep = 0;  
 int     mm_sshkey_sign(struct sshkey *, u_char **, u_int *,  int     mm_sshkey_sign(struct sshkey *, u_char **, u_int *,
     const u_char *, u_int, const char *, const char *, const char *, u_int);      const u_char *, u_int, const char *, const char *, const char *, u_int);
   
Line 61 
Line 60 
     const u_char *data, u_int datalen, const char *alg,      const u_char *data, u_int datalen, const char *alg,
     const char *sk_provider, const char *sk_pin, u_int compat)      const char *sk_provider, const char *sk_pin, u_int compat)
 {  {
         return (-1);          size_t slen = 0;
           int ret;
   
           ret = sshkey_sign(key, sigp, &slen, data, datalen, alg,
               sk_provider, sk_pin, compat);
           *lenp = slen;
           return ret;
 }  }
   
 #ifdef WITH_OPENSSL  #ifdef WITH_OPENSSL
 DH *  DH *
 mm_choose_dh(int min, int nbits, int max)  mm_choose_dh(int min, int nbits, int max)
 {  {
         return (NULL);          return choose_dh(min, nbits, max);
 }  }
 #endif  #endif
   

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29