minor cleanup and root Makefile now triggers pinentry Makefile
This commit is contained in:
parent
baf9529e6d
commit
377dc49065
13 changed files with 60 additions and 7 deletions
8
Makefile
8
Makefile
|
@ -24,12 +24,16 @@ config.h:
|
|||
|
||||
${OBJ}: config.h config.mk drw.h
|
||||
|
||||
spine: spine.o drw.o util.o
|
||||
pinentry:
|
||||
$(MAKE) -C pinentry
|
||||
|
||||
spine: pinentry spine.o drw.o util.o
|
||||
@echo CC -o $@
|
||||
@${CC} -o $@ spine.o drw.o util.o pinentry/pinentry.o pinentry/util.o pinentry/password-cache.o pinentry/argparse.o pinentry/secmem.o ${LDFLAGS} -lassuan -lgpgme -lgpg-error
|
||||
|
||||
clean:
|
||||
@echo cleaning
|
||||
@rm -f spine ${OBJ}
|
||||
$(MAKE) -C pinentry/ clean
|
||||
|
||||
.PHONY: all options clean
|
||||
.PHONY: all options clean pinentry
|
||||
|
|
BIN
drw.o
BIN
drw.o
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
include ../config.mk
|
||||
|
||||
SRC = pinentry.c argparse.c password-cache.c
|
||||
SRC = util.c pinentry.c argparse.c password-cache.c
|
||||
OBJ = ${SRC:.c=.o}
|
||||
|
||||
all: pinentry
|
||||
|
@ -9,9 +9,9 @@ all: pinentry
|
|||
@echo CC $<
|
||||
@${CC} -c ${CFLAGS} $<
|
||||
|
||||
${OBJ}: pinentry.h argparse.h password-cache.h memory.h
|
||||
${OBJ}: pinentry.h argparse.h password-cache.h memory.h util.h
|
||||
|
||||
pinentry: pinentry.o argparse.o password-cache.o secmem.o
|
||||
pinentry: pinentry.o argparse.o password-cache.o secmem.o util.o
|
||||
|
||||
clean:
|
||||
@echo cleaning
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
pinentry/util.o
BIN
pinentry/util.o
Binary file not shown.
49
pinentry_t
Normal file
49
pinentry_t
Normal file
|
@ -0,0 +1,49 @@
|
|||
struct pinentry
|
||||
{
|
||||
char *title;
|
||||
char *description;
|
||||
char *error;
|
||||
char *prompt;
|
||||
char *ok;
|
||||
char *notok;
|
||||
char *cancel;
|
||||
char *pin;
|
||||
int pin_len;
|
||||
int pin_from_cache;
|
||||
char *display;
|
||||
char *ttyname;
|
||||
char *ttytype;
|
||||
char *lc_ctype;
|
||||
char *lc_messages;
|
||||
int debug;
|
||||
int timeout;
|
||||
int grab;
|
||||
int parent_wid;
|
||||
char *touch_file;
|
||||
int result;
|
||||
int canceled;
|
||||
int locale_err;
|
||||
int specific_err;
|
||||
int close_button;
|
||||
int one_button;
|
||||
char *repeat_passphrase;
|
||||
char *repeat_error_string;
|
||||
int repeat_okay;
|
||||
char *quality_bar;
|
||||
char *quality_bar_tt;
|
||||
pinentry_color_t color_fg;
|
||||
int color_fg_bright;
|
||||
pinentry_color_t color_bg;
|
||||
pinentry_color_t color_so;
|
||||
int color_so_bright;
|
||||
char *default_ok;
|
||||
char *default_cancel;
|
||||
char *default_prompt;
|
||||
char *default_pwmngr;
|
||||
int allow_external_password_cache;
|
||||
int tried_password_cache;
|
||||
char *keyinfo;
|
||||
int may_cache_password;
|
||||
void *ctx_assuan;
|
||||
};
|
||||
typedef struct pinentry *pinentry_t;
|
BIN
spine
BIN
spine
Binary file not shown.
4
spine.c
4
spine.c
|
@ -297,7 +297,7 @@ catchsig(int sig)
|
|||
timed_out = 1;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
password (void) {
|
||||
promptwin();
|
||||
char *buf = secmem_malloc(strlen(text));
|
||||
|
@ -306,7 +306,7 @@ password (void) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
confirm(void) {
|
||||
return 1;
|
||||
}
|
||||
|
|
BIN
spine.o
BIN
spine.o
Binary file not shown.
BIN
util.o
BIN
util.o
Binary file not shown.
Loading…
Reference in a new issue