]> andersk Git - openssh.git/blobdiff - key.h
- (dtucker) [session.c openbsd-compat/bsd-cygwin_util.h] Move Cygwin
[openssh.git] / key.h
diff --git a/key.h b/key.h
index 562834c98959377374eeccf7cd4240b8b5be5538..28753fdfa6afe0dae773fb4404ebe1a2d1c47ad3 100644 (file)
--- a/key.h
+++ b/key.h
@@ -1,4 +1,4 @@
-/*     $OpenBSD: key.h,v 1.15 2001/06/26 17:27:23 markus Exp $ */
+/*     $OpenBSD: key.h,v 1.22 2003/06/24 08:23:46 markus Exp $ */
 
 /*
  * Copyright (c) 2000, 2001 Markus Friedl.  All rights reserved.
@@ -44,8 +44,13 @@ enum fp_rep {
        SSH_FP_HEX,
        SSH_FP_BUBBLEBABBLE
 };
+
+/* key is stored in external hardware */
+#define KEY_FLAG_EXT           0x0001
+
 struct Key {
-       int     type;
+       int      type;
+       int      flags;
        RSA     *rsa;
        DSA     *dsa;
 };
@@ -53,8 +58,10 @@ struct Key {
 Key    *key_new(int);
 Key    *key_new_private(int);
 void    key_free(Key *);
+Key    *key_demote(Key *);
 int     key_equal(Key *, Key *);
 char   *key_fingerprint(Key *, enum fp_type, enum fp_rep);
+u_char *key_fingerprint_raw(Key *, enum fp_type, u_int *);
 char   *key_type(Key *);
 int     key_write(Key *, FILE *);
 int     key_read(Key *, char **);
@@ -64,12 +71,17 @@ Key *key_generate(int, u_int);
 Key    *key_from_private(Key *);
 int     key_type_from_name(char *);
 
-Key    *key_from_blob(char *, int);
+Key    *key_from_blob(u_char *, u_int);
 int     key_to_blob(Key *, u_char **, u_int *);
 char   *key_ssh_name(Key *);
 int     key_names_valid2(const char *);
 
-int     key_sign(Key *, u_char **, int *, u_char *, int);
-int     key_verify(Key *, u_char *, int, u_char *, int);
+int     key_sign(Key *, u_char **, u_int *, u_char *, u_int);
+int     key_verify(Key *, u_char *, u_int, u_char *, u_int);
+
+int     ssh_dss_sign(Key *, u_char **, u_int *, u_char *, u_int);
+int     ssh_dss_verify(Key *, u_char *, u_int, u_char *, u_int);
+int     ssh_rsa_sign(Key *, u_char **, u_int *, u_char *, u_int);
+int     ssh_rsa_verify(Key *, u_char *, u_int, u_char *, u_int);
 
 #endif
This page took 0.043796 seconds and 4 git commands to generate.