1f42f5fffb
Truncate file if it became smaller in all cases
2023-11-07 16:18:41 +01:00
962054a3fe
Increment patch version
2023-11-07 16:17:42 +01:00
282c819ea2
Avoid CMake deprecation warning by bumping version
2023-07-23 21:06:28 +02:00
92d8324cdc
Improve condition for use of pubsetbuf
...
Using this function like this seems only be possible with `libstdc++`. The
standard lib of MSVC does not support it as well. So use it only with
`libstdc++`.
2023-02-28 21:01:23 +01:00
7bb9134fd3
Avoid unqualified calls to std::move
2023-02-18 19:03:29 +01:00
9f8deafd5a
Update copyright notice
2023-01-17 18:36:48 +01:00
2e2c3ba4fc
Avoid using deprecated OpenSSL functions
2022-11-03 22:29:08 +01:00
facfc879b5
Add stalebot config
2022-04-12 01:08:06 +02:00
52a3ac32f7
Add copyright notice
2022-04-05 20:18:35 +02:00
a725550d17
Increment patch version
2022-03-15 21:40:17 +01:00
a367edc81f
Clarify that license is "GPL-2-or-later"
2022-03-15 21:39:33 +01:00
98a11787c1
Use constant for additional buffer size used to decrypt/encrypt
2021-12-11 23:51:52 +01:00
ff7dc8d772
Fix comment
2021-12-11 23:49:29 +01:00
5ca417069a
Fix compilation of AES implementation, document that is is not actually used
2021-08-22 00:17:04 +02:00
d1b7187085
Fix shadowing warning
2021-08-22 00:02:29 +02:00
9b4fcdc2b3
Fix typos found via codespell --skip .git -w
2021-07-03 19:42:20 +02:00
5935ea0691
Fix warnings
2021-03-20 21:55:40 +01:00
f7c6db0132
Use NativeFileStream and actually throw exceptions in export
2020-02-14 17:37:04 +01:00
Marius Kittler
b1a55def8b
Use consistent order for visibility attribute
2020-01-29 18:31:23 +01:00
334a2093f6
Mention that CBC and OpenSSL is used
2020-01-02 20:17:02 +01:00
463c1f871f
Reformat CMake scripts against cmake-format 0.6.3
2019-12-15 19:45:47 +01:00
fb8c99b2d4
Don't suppress IO errors when writing files
...
* Close or flush streams explicitely so writing is not
deferred
* to catch errors in the right place
* to avoid suppressing errors completely when writing
would be deferred to the destructor invocation
* Improve comments
2019-12-15 19:43:31 +01:00
Marius Kittler
3afa954ebd
Fix old namespaces being mentioned in the documentation
2019-09-04 18:47:45 +02:00
a3d104cf8b
Reduce code for flag enum classes
2019-08-14 01:22:33 +02:00
d89c7b7bf1
Set project() on top-level
...
See https://github.com/Martchus/cpp-utilities/pull/15
2019-07-20 18:10:36 +02:00
a1b694a50b
Allow creating a new file in PasswordFile::save()
...
to ease saving a file under a different location
2019-07-03 23:59:07 +02:00
Marius Kittler
b6ad06faa2
Do not close file if not opened in PasswordFile::save()
2019-06-25 11:36:47 +02:00
a2772506a3
Adapt to changes in c++utilities
2019-06-12 21:02:09 +02:00
b323460dbb
Adapt to changes in c++utilities
2019-06-10 22:44:29 +02:00
Marius Kittler
0754760b19
Adapt to c++utilities v5
2019-05-04 22:25:14 +02:00
986ceaf567
Bump version
2019-02-17 17:07:11 +01:00
Marius Kittler
4642f56d0d
Apply cmake-format
2019-02-06 18:02:40 +01:00
Marius Kittler
1d06d52f18
Add override to ~ParsingException()
2019-02-06 18:02:14 +01:00
2828061193
Let CMake generate code for test application
2019-01-13 22:30:54 +01:00
e29457dfd0
Improve const correctness
2018-12-23 18:57:03 +01:00
a25282b3d1
Make exception c'tors/d'tors non-inline again
...
Otherwise it is not possible to throw/catch it accross
library boundaries under Android.
2018-12-22 02:47:33 +01:00
42f37a1852
Fix warning about implicit conversion
2018-12-22 02:46:55 +01:00
4412c62433
Add remark regarding PasswordFile::isEncryptionUsed()
2018-12-22 02:46:24 +01:00
Marius Kittler
292a8668bf
Extend tests
2018-12-21 17:52:15 +01:00
Marius Kittler
35b09d73b2
Allow inlining simple PasswordFile methods
2018-12-21 17:33:05 +01:00
Marius Kittler
70f62bf94a
Set open options
...
Not used yet but maybe useful later
2018-12-21 17:32:31 +01:00
Marius Kittler
c04fdd6cc2
Use override
2018-12-21 17:31:50 +01:00
Marius Kittler
af5d9147b4
Improve exception constructors
2018-12-21 17:31:24 +01:00
2c856e3976
Add statistics
2018-12-21 01:12:53 +01:00
b9af93adbd
Fix |= operator for flags
2018-12-19 00:14:59 +01:00
d4e24046d0
Fix includes in utils/openssl.h
2018-12-18 23:59:24 +01:00
448c5b1a37
Improve reading/writing overall file
...
* Allow to hash password N times using SHA-256
* Use flags instead of bool parameter
* Expose extended header
* Fix bugs when reading/writing extended headers
* Store password as std::string
Reading files written with previous versions is still
possible. If new features are not used it is also possible
to read new files with previous versions.
2018-12-18 23:17:19 +01:00
d9edcc4083
Apply clang-format
2018-12-08 19:09:17 +01:00
ff76846e8b
Don't use pubsetbuf() when using libc++
...
Otherwise the eof bit is set on attempt to read
2018-12-03 00:28:24 +01:00
60d8972dcb
Improve error handling when loading file
...
* Handle IO errors when reading internal buffer
* Throw an error when the decompressed or decrypted buffer
is empty
2018-12-03 00:26:11 +01:00