<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/internal/readpassword, branch det</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=det</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=det'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2017-05-14T12:02:08+00:00</updated>
<entry>
<title>exitcodes: add code 22 for "password is empty"</title>
<updated>2017-05-14T12:02:08+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-05-14T12:02:08+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=2aea2d3d62e5df4c8bf25195dc97e60b495f6f12'/>
<id>urn:sha1:2aea2d3d62e5df4c8bf25195dc97e60b495f6f12</id>
<content type='text'>
Empty passwords are not allowed. Let's give the error
it's own exit code.
</content>
</entry>
<entry>
<title>exitcodes: pull all exit code definitions into the package</title>
<updated>2017-05-07T20:16:22+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-05-07T20:15:01+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=d5adde1eeb13ba377f7c05b9f21893c01f61ec16'/>
<id>urn:sha1:d5adde1eeb13ba377f7c05b9f21893c01f61ec16</id>
<content type='text'>
This commit defines all exit codes in one place in the exitcodes
package.

Also, it adds a test to verify the exit code on incorrect
password, which is what SiriKali cares about the most.

Fixes https://github.com/rfjakob/gocryptfs/issues/77 .
</content>
</entry>
<entry>
<title>readpassword: increase max password size to 2048</title>
<updated>2017-04-29T13:15:11+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-04-29T13:15:11+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=6e029a3799816dd6703b2cb573022c7c3fd15c39'/>
<id>urn:sha1:6e029a3799816dd6703b2cb573022c7c3fd15c39</id>
<content type='text'>
This is the value EncFS uses, so let's follow suit.
Suggested at https://github.com/rfjakob/gocryptfs/issues/77 .
</content>
</entry>
<entry>
<title>readpassword: increase max password length to 2000</title>
<updated>2017-03-20T08:29:56+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-03-20T08:29:56+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=2824218a25bef58167d922dddbb10ad0e022db6d'/>
<id>urn:sha1:2824218a25bef58167d922dddbb10ad0e022db6d</id>
<content type='text'>
1000 was too low as at least one user had a password
that was longer.

Fixes https://github.com/rfjakob/gocryptfs/issues/93
</content>
</entry>
<entry>
<title>readpassword: limit password length to 1000 bytes</title>
<updated>2017-02-13T08:13:22+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-02-13T08:13:22+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=3784901fcee46d3e14e154b32cc6a7822bcc90f6'/>
<id>urn:sha1:3784901fcee46d3e14e154b32cc6a7822bcc90f6</id>
<content type='text'>
This used to hang at 100% CPU:

    cat /dev/zero | gocryptfs -init a

...and would ultimately send the box into out-of-memory.

The number 1000 is chosen arbitrarily and seems big enough
given that the password must be one line.

Suggested by @mhogomchungu in https://github.com/rfjakob/gocryptfs/issues/77 .
</content>
</entry>
<entry>
<title>Check for trailing garbage after the password</title>
<updated>2017-02-12T16:59:09+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-02-12T14:35:50+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8adfbf2dc34560df7436c89b59a9749d2dd3b78e'/>
<id>urn:sha1:8adfbf2dc34560df7436c89b59a9749d2dd3b78e</id>
<content type='text'>
From the comment:

// CheckTrailingGarbage tries to read one byte from stdin and exits with a
// fatal error if the read returns any data.
// This is meant to be called after reading the password, when there is no more
// data expected. This helps to catch problems with third-party tools that
// interface with gocryptfs.
</content>
</entry>
<entry>
<title>readpassword: improve comment on readPasswordStdin</title>
<updated>2017-02-12T12:55:30+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-02-12T12:55:15+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=2dd90ac19ce97544c412d90a24df0f68e66311db'/>
<id>urn:sha1:2dd90ac19ce97544c412d90a24df0f68e66311db</id>
<content type='text'>
</content>
</entry>
<entry>
<title>readpassword: support spaces in "-passfile" filename</title>
<updated>2017-01-28T23:34:12+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2017-01-28T23:34:12+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=6166dad05c1bf505f1c0fca1fbe8bf6a27d02db9'/>
<id>urn:sha1:6166dad05c1bf505f1c0fca1fbe8bf6a27d02db9</id>
<content type='text'>
...and while we are at it, also filenames starting with "-".
</content>
</entry>
<entry>
<title>readpassword: check extpass return code</title>
<updated>2016-10-16T14:44:27+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-10-16T14:44:27+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=b2d33028a6121f2b2a53d3ffe96dd235d59249f1'/>
<id>urn:sha1:b2d33028a6121f2b2a53d3ffe96dd235d59249f1</id>
<content type='text'>
...and exit if it is not zero.
</content>
</entry>
<entry>
<title>lint fixes</title>
<updated>2016-10-04T21:18:33+00:00</updated>
<author>
<name>Valient Gough</name>
</author>
<published>2016-10-02T04:14:18+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=b764917cd5c1b1d61b8ce08e7af0b29793fbbb80'/>
<id>urn:sha1:b764917cd5c1b1d61b8ce08e7af0b29793fbbb80</id>
<content type='text'>
</content>
</entry>
</feed>
