mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
initial commit
This commit is contained in:
35
src/keymgmt.h
Normal file
35
src/keymgmt.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef _HAVE_KEYMGMT_H
|
||||
#define _HAVE_KEYMGMT_H
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "randomart.h"
|
||||
#include "mac.h"
|
||||
#include "key.h"
|
||||
#include "pcp.h"
|
||||
#include "vault.h"
|
||||
#include "defines.h"
|
||||
#include "readpass.h"
|
||||
#include "keyprint.h"
|
||||
|
||||
#define _WITH_GETLINE
|
||||
|
||||
char *pcp_getstdin(const char *prompt);
|
||||
int pcp_storekey (pcp_key_t *key);
|
||||
void pcp_keygen();
|
||||
void pcp_listkeys();
|
||||
void pcp_exportsecret(char *keyid, int useid, char *outfile);
|
||||
void pcp_exportpublic(char *keyid, int useid, char *outfile);
|
||||
char *pcp_normalize_id(char *keyid);
|
||||
pcp_key_t *pcp_find_primary_secret();
|
||||
int pcp_importpublic (vault_t *vault, FILE *in);
|
||||
int pcp_sanitycheck_pub(pcp_pubkey_t *key);
|
||||
int pcp_importsecret (vault_t *vault, FILE *in);
|
||||
int pcp_sanitycheck_key(pcp_key_t *key);
|
||||
void pcpdelete_key(char *keyid);
|
||||
|
||||
|
||||
#endif // _HAVE_KEYMGMT_H
|
||||
Reference in New Issue
Block a user