ttyname in gpgme when running Android

Werner Koch wk at gnupg.org
Tue Dec 11 14:15:41 CET 2012


On Tue, 11 Dec 2012 14:31, abel at guardianproject.info said:

> Hi Werner, any updates on making Android avoid the ttyname() codepaths?

Please disregard my previous mail.  It should work since some time but I
probably missed to tell you:

commit 835698b72bc509565aad52b0753f1c56c1a8f062
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Nov 20 19:01:13 2012 +0100

    Do not use a broken ttyname.
    
    * configure.ac (HAVE_BROKEN_TTYNAME): New ac_define set for Android
    systems.
    * common/util.h (gnupg_ttyname): New macro.  Change all callers of
    ttyname to use this macro instead.
    (ttyname) [W32]: Rename to _gnupg_ttyname and use also if
    HAVE_BROKEN_TTYNAME is defined.
    * common/simple-pwquery.c (agent_send_all_options): Keep on using
    ttyname unless HAVE_BROKEN_TTYNAME is set.  This is because this file
    may be used standalone.



Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list