<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/internal/readpassword, branch v1.2.1</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=v1.2.1</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=v1.2.1'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2017-02-13T08:13:22+00:00</updated>
<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>
<entry>
<title>Add godoc comments to all internal packages</title>
<updated>2016-07-06T19:51:25+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-07-06T19:51:25+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=e8a234f658553927a2e845d64862321c90388e00'/>
<id>urn:sha1:e8a234f658553927a2e845d64862321c90388e00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: exit with correct error code from TestMain</title>
<updated>2016-06-16T19:56:23+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-06-16T19:56:23+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=96750a7d3c52b75d13d6f3ed46bd48af28acebcd'/>
<id>urn:sha1:96750a7d3c52b75d13d6f3ed46bd48af28acebcd</id>
<content type='text'>
extpass_test and example_filesystems_test did it wrong,
always returning 0.
</content>
</entry>
<entry>
<title>readpassword: clean up leftover debug commit</title>
<updated>2016-06-16T18:59:51+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-06-16T18:59:51+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=c76c952c192f5378eb713f4f3435de29af0f7922'/>
<id>urn:sha1:c76c952c192f5378eb713f4f3435de29af0f7922</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename internal "toggledlog" package to "tlog"</title>
<updated>2016-06-15T21:30:44+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2016-06-15T21:30:44+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=6c3f97399a01a2d8480b39978209099335efbf7d'/>
<id>urn:sha1:6c3f97399a01a2d8480b39978209099335efbf7d</id>
<content type='text'>
tlog is used heavily everywhere and deserves a shorter name.

Renamed using sed magic, without any manual rework:

   find * -type f -exec sed -i 's/toggledlog/tlog/g' {} +
</content>
</entry>
</feed>
