mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 06:10:23 -04:00
14 lines
529 B
C
14 lines
529 B
C
#include <Security/Security.h>
|
|
|
|
struct Server {
|
|
SecProtocolType proto;
|
|
char *host;
|
|
char *path;
|
|
unsigned int port;
|
|
};
|
|
|
|
char *keychain_add(struct Server *server, char *label, char *username, char *secret);
|
|
char *keychain_get(struct Server *server, unsigned int *username_l, char **username, unsigned int *secret_l, char **secret);
|
|
char *keychain_delete(struct Server *server);
|
|
char *keychain_list(char *credsLabel, char *** data, char *** accts, unsigned int *list_l);
|
|
void freeListData(char *** data, unsigned int length); |