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

Annotation of src/usr.bin/ssh/key.h, Revision 1.3

1.1       markus      1: #ifndef KEY_H
                      2: #define KEY_H
                      3:
                      4: typedef struct Key Key;
                      5: enum types {
                      6:        KEY_RSA,
                      7:        KEY_DSA,
                      8:        KEY_EMPTY
                      9: };
                     10: struct Key {
                     11:        int     type;
                     12:        RSA     *rsa;
                     13:        DSA     *dsa;
                     14: };
                     15:
                     16: Key    *key_new(int type);
                     17: void   key_free(Key *k);
                     18: int    key_equal(Key *a, Key *b);
                     19: char   *key_fingerprint(Key *k);
1.3     ! markus     20: char   *key_type(Key *k);
1.1       markus     21: int    key_write(Key *key, FILE *f);
1.2       markus     22: unsigned int
                     23: key_read(Key *key, char **cpp);
1.1       markus     24:
                     25: #endif