summaryrefslogtreecommitdiffhomepage
path: root/keyimport.h
blob: f8c7b642e57caddc6d86e2cf89d818cac8efab62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _KEYIMPORT_H_
#define _KEYIMPORT_H_

#include "includes.h"
#include "signkey.h"

enum {
	KEYFILE_DROPBEAR,
	KEYFILE_OPENSSH,
	KEYFILE_SSHCOM
};

int import_write(const char *filename, sign_key *key, char *passphrase,
		int filetype);
sign_key *import_read(const char *filename, char *passphrase, int filetype);
int import_encrypted(const char* filename, int filetype);

#endif /* _KEYIMPORT_H_ */