TclGPG  Check-in [772fd164a7]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Return the 'bad passphrase' error for the case of failure after incorrectly entered passphrase via the pinentry.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 772fd164a7dcb87df5b952c4ae26a4e6e783cd76
User & Date: sgolovan 2015-12-27 15:13:04
Context
2015-12-27
15:40
Added a test which ensures that the recipient for encryption can be specified using his key ID. check-in: 637c8f9373 user: sgolovan tags: trunk
15:13
Return the 'bad passphrase' error for the case of failure after incorrectly entered passphrase via the pinentry. check-in: 772fd164a7 user: sgolovan tags: trunk
2015-12-26
13:32
Added new property pinentry-mode. It can be used with gpg 2.1 to use custom passphrase callbacks. Also, allowed the input message to sign and the passphrase to be supplied to gpg in any order (doesn't work without C helper). Added a few tests for pinentry-mode and documented it shortly in the manual page. check-in: cc12c7dc06 user: sgolovan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.






1
2
3
4
5
6
7





2015-12-26  Sergei Golovan  <sgolovan@nes.ru>

	* doc/gpg.man, tclgpg.tcl: Take the name of GnuPG executable from
	  the $GPG_EXECUTABLE environment variable if it's set.

	* tclgpg.c: Fixed a harmless but annoying warning with integer to
	  pointer conversion.
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
2015-12-27  Sergei Golovan  <sgolovan@nes.ru>

	* tclgpg.tcl: Return the 'bad passphrase' error for the case of
	  failure after incorrectly entered passphrase via the pinentry.

2015-12-26  Sergei Golovan  <sgolovan@nes.ru>

	* doc/gpg.man, tclgpg.tcl: Take the name of GnuPG executable from
	  the $GPG_EXECUTABLE environment variable if it's set.

	* tclgpg.c: Fixed a harmless but annoying warning with integer to
	  pointer conversion.

Changes to tclgpg.tcl.

1644
1645
1646
1647
1648
1649
1650







1651
1652
1653
1654
1655
1656
1657
                        return
                    }
                }
            }
            INV_SGNR {
                set output 0
                break







            }
        }
    }

    if {!$output} {
        # If gpg didn't say anything then it's a fault








>
>
>
>
>
>
>







1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
                        return
                    }
                }
            }
            INV_SGNR {
                set output 0
                break
            }
            FAILURE {
                # TODO: Figure out the real reason of failure

                set state(badpassphrase) 1
                set eof 1
                break
            }
        }
    }

    if {!$output} {
        # If gpg didn't say anything then it's a fault