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

Diff for /src/usr.bin/ssh/Attic/key.h between version 1.30 and 1.31

version 1.30, 2010/04/16 01:47:26 version 1.31, 2010/08/31 11:54:45
Line 29 
Line 29 
 #include "buffer.h"  #include "buffer.h"
 #include <openssl/rsa.h>  #include <openssl/rsa.h>
 #include <openssl/dsa.h>  #include <openssl/dsa.h>
   #include <openssl/ec.h>
   
 typedef struct Key Key;  typedef struct Key Key;
 enum types {  enum types {
         KEY_RSA1,          KEY_RSA1,
         KEY_RSA,          KEY_RSA,
         KEY_DSA,          KEY_DSA,
           KEY_ECDSA,
         KEY_RSA_CERT,          KEY_RSA_CERT,
         KEY_DSA_CERT,          KEY_DSA_CERT,
           KEY_ECDSA_CERT,
         KEY_RSA_CERT_V00,          KEY_RSA_CERT_V00,
         KEY_DSA_CERT_V00,          KEY_DSA_CERT_V00,
         KEY_UNSPEC          KEY_UNSPEC
Line 73 
Line 76 
         int      flags;          int      flags;
         RSA     *rsa;          RSA     *rsa;
         DSA     *dsa;          DSA     *dsa;
           int      ecdsa_nid;     /* NID of curve */
           EC_KEY  *ecdsa;
         struct KeyCert *cert;          struct KeyCert *cert;
 };  };
   
Line 104 
Line 109 
             const char **);              const char **);
 int      key_cert_is_legacy(Key *);  int      key_cert_is_legacy(Key *);
   
   int              key_ecdsa_nid_from_name(const char *);
   int              key_curve_name_to_nid(const char *);
   const char *     key_curve_nid_to_name(int);
   int              key_ecdsa_bits_to_nid(int);
   int              key_ecdsa_group_to_nid(const EC_GROUP *);
   int              key_ec_validate_public(const EC_GROUP *, const EC_POINT *);
   int              key_ec_validate_private(const EC_KEY *);
   
 Key             *key_from_blob(const u_char *, u_int);  Key             *key_from_blob(const u_char *, u_int);
 int              key_to_blob(const Key *, u_char **, u_int *);  int              key_to_blob(const Key *, u_char **, u_int *);
 const char      *key_ssh_name(const Key *);  const char      *key_ssh_name(const Key *);
   const char      *key_ssh_name_plain(const Key *);
 int              key_names_valid2(const char *);  int              key_names_valid2(const char *);
   
 int      key_sign(const Key *, u_char **, u_int *, const u_char *, u_int);  int      key_sign(const Key *, u_char **, u_int *, const u_char *, u_int);
Line 114 
Line 128 
   
 int      ssh_dss_sign(const Key *, u_char **, u_int *, const u_char *, u_int);  int      ssh_dss_sign(const Key *, u_char **, u_int *, const u_char *, u_int);
 int      ssh_dss_verify(const Key *, const u_char *, u_int, const u_char *, u_int);  int      ssh_dss_verify(const Key *, const u_char *, u_int, const u_char *, u_int);
   int      ssh_ecdsa_sign(const Key *, u_char **, u_int *, const u_char *, u_int);
   int      ssh_ecdsa_verify(const Key *, const u_char *, u_int, const u_char *, u_int);
 int      ssh_rsa_sign(const Key *, u_char **, u_int *, const u_char *, u_int);  int      ssh_rsa_sign(const Key *, u_char **, u_int *, const u_char *, u_int);
 int      ssh_rsa_verify(const Key *, const u_char *, u_int, const u_char *, u_int);  int      ssh_rsa_verify(const Key *, const u_char *, u_int, const u_char *, u_int);
   
   #if defined(DEBUG_KEXECDH) || defined(DEBUG_PK)
   void    key_dump_ec_point(const EC_GROUP *, const EC_POINT *);
   void    key_dump_ec_key(const EC_KEY *);
   #endif
   
 #endif  #endif

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31