summaryrefslogtreecommitdiffstats
path: root/g10/cpr.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-01-08 16:48:51 +0100
committerWerner Koch <wk@gnupg.org>2009-01-08 16:48:51 +0100
commit82ab848ea4369c6f4c504332a1fb36de883b4869 (patch)
treecca1b3795570bacb9c83f8c0b19d010753f7ddbf /g10/cpr.c
parentFix card change detection. (diff)
downloadgnupg2-82ab848ea4369c6f4c504332a1fb36de883b4869.tar.xz
gnupg2-82ab848ea4369c6f4c504332a1fb36de883b4869.zip
Update spanish translation.
Cleanups. Allow utf-8 in email addresses.
Diffstat (limited to 'g10/cpr.c')
-rw-r--r--g10/cpr.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/g10/cpr.c b/g10/cpr.c
index 60cc97bf6..a20a811ff 100644
--- a/g10/cpr.c
+++ b/g10/cpr.c
@@ -357,10 +357,6 @@ cpr_enabled()
{
if( opt.command_fd != -1 )
return 1;
-#ifdef USE_SHM_COPROCESSING
- if( opt.shm_coprocess )
- return 1;
-#endif
return 0;
}
@@ -371,10 +367,6 @@ cpr_get_no_help( const char *keyword, const char *prompt )
if( opt.command_fd != -1 )
return do_get_from_fd ( keyword, 0, 0 );
-#ifdef USE_SHM_COPROCESSING
- if( opt.shm_coprocess )
- return do_shm_get( keyword, 0, 0 );
-#endif
for(;;) {
p = tty_get( prompt );
return p;
@@ -388,10 +380,6 @@ cpr_get( const char *keyword, const char *prompt )
if( opt.command_fd != -1 )
return do_get_from_fd ( keyword, 0, 0 );
-#ifdef USE_SHM_COPROCESSING
- if( opt.shm_coprocess )
- return do_shm_get( keyword, 0, 0 );
-#endif
for(;;) {
p = tty_get( prompt );
if( *p=='?' && !p[1] && !(keyword && !*keyword)) {
@@ -424,10 +412,6 @@ cpr_get_hidden( const char *keyword, const char *prompt )
if( opt.command_fd != -1 )
return do_get_from_fd ( keyword, 1, 0 );
-#ifdef USE_SHM_COPROCESSING
- if( opt.shm_coprocess )
- return do_shm_get( keyword, 1, 0 );
-#endif
for(;;) {
p = tty_get_hidden( prompt );
if( *p == '?' && !p[1] ) {
@@ -444,10 +428,6 @@ cpr_kill_prompt(void)
{
if( opt.command_fd != -1 )
return;
-#ifdef USE_SHM_COPROCESSING
- if( opt.shm_coprocess )
- return;
-#endif
tty_kill_prompt();
return;
}
@@ -460,10 +440,6 @@ cpr_get_answer_is_yes( const char *keyword, const char *prompt )
if( opt.command_fd != -1 )
return !!do_get_from_fd ( keyword, 0, 1 );
-#ifdef USE_SHM_COPROCESSING
- if( opt.shm_coprocess )
- return !!do_shm_get( keyword, 0, 1 );
-#endif
for(;;) {
p = tty_get( prompt );
trim_spaces(p); /* it is okay to do this here */
@@ -488,10 +464,6 @@ cpr_get_answer_yes_no_quit( const char *keyword, const char *prompt )
if( opt.command_fd != -1 )
return !!do_get_from_fd ( keyword, 0, 1 );
-#ifdef USE_SHM_COPROCESSING
- if( opt.shm_coprocess )
- return !!do_shm_get( keyword, 0, 1 );
-#endif
for(;;) {
p = tty_get( prompt );
trim_spaces(p); /* it is okay to do this here */
@@ -520,10 +492,6 @@ cpr_get_answer_okay_cancel (const char *keyword,
if( opt.command_fd != -1 )
answer = do_get_from_fd ( keyword, 0, 0 );
-#ifdef USE_SHM_COPROCESSING
- else if( opt.shm_coprocess )
- answer = do_shm_get( keyword, 0, 0 );
-#endif
if (answer)
{