[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.1

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);
        !            20: int    key_write(Key *key, FILE *f);
        !            21: int    key_read(Key *key, unsigned int bits, char **cpp);
        !            22:
        !            23: #endif