Christian Hohnstädt
24009b13c7
Fix warnings
2020-10-14 19:48:17 +02:00
Christian Hohnstädt
673df16dcf
Finish struct option with zeros
2020-10-12 13:04:03 +02:00
Christian Hohnstaedt
ef24c00c22
Minor fixes
2020-06-26 14:21:32 +02:00
Christian Hohnstaedt
17b621ccef
Encapsulate all index.internalPointer() in fromIndex(index)
2020-05-10 09:09:31 +02:00
Christian Hohnstaedt
9e52d99067
Fix destructor of BioByteArray to not overwrite ro data
2020-05-08 17:37:40 +02:00
Christian Hohnstaedt
45f834a6e4
Move tree-handling from db_x509 class to the base class
...
This is a preparation for possibly inserting
structuring folder elements later.
2020-05-08 17:37:40 +02:00
Christian Hohnstaedt
af79214121
Use fromIndex(index) convenience function
...
for certificates create a function returning
a dynamically casted pki_x509 pointer
Add NULL check of dynamically casted pointer,
because it could be a folder...
2020-05-08 17:37:40 +02:00
Christian Hohnstaedt
1e544161f6
Eliminate the use of "mainwin" in lib/db_*
2020-05-08 11:59:09 +02:00
Christian Hohnstaedt
7c65a786ea
Revamp database management
...
The global variable "Database" of class xca_db
can be used by any other class to access. No need
to provide it.
The "xca_db" class managed the "database_model" pointer.
Accessing the name of the current database has been unified.
2020-05-08 07:47:15 +02:00
Christian Hohnstaedt
93a7c6a9a3
Implement option --list-curves and display EC curves
2020-05-06 18:32:37 +02:00
Christian Hohnstaedt
9b201566e2
Improve on cmdline, console, unicode and windows CMD
...
Improve Windows registry functions
Use *A postfix function explicit becaus e we don't expect
unicode characters.
Also simplify "console_write()"
2020-05-06 18:32:27 +02:00
Christian Hohnstaedt
d1c0970ea1
BioByteArray: Add size() method
2020-05-06 18:08:36 +02:00
Christian Hohnstaedt
b5c9d645e3
More native separators when displaying file names
2020-05-06 17:57:09 +02:00
Christian Hohnstaedt
b2ab7570b8
Minor fixxes and constifies
2020-04-30 18:47:28 +02:00
Christian Hohnstaedt
0f7465dcc5
Add convenience function to convert QModelIndex to pki_base *
2020-04-30 18:46:08 +02:00
Christian Hohnstaedt
03633d7a8a
Provide db class name through constructor
2020-04-30 18:44:36 +02:00
Christian Hohnstaedt
a3344100e3
Drop FOR_ALL_pki() makro and use a foreach() loop
...
The foreach loop iterates over all items of a type.
The iterate method is now superflous
2020-04-30 18:40:49 +02:00
Christian Hohnstaedt
8f46d238e0
Replace __ME makro by pki_base QString() operator
...
Now a pki item can transform itself to a QString for debugging
2020-04-30 18:37:48 +02:00
Christian Hohnstaedt
5a64725556
Move item store from db_base into separate class "pki_lookup"
...
Since also pki_base and other classes need to access them.
2020-04-30 18:37:25 +02:00
Christian Hohnstaedt
f889efc4cb
Merge branch 'master' into develop
2020-04-30 18:34:16 +02:00
Christian Hohnstaedt
1f2429e677
Avoid filedescriptor leak
2020-04-29 13:29:01 +02:00
Christian Hohnstaedt
76e3f86783
Close #191 : OID LN differs warning popups at startup
...
OpenSSL fixed the 2 LN with commit:
648b53b88e
in OpenSSL 1.1.1e.
Follow my own advice and delete them from the oids.txt
together with all other OIDs present in OpenSSL
since at least version 0.9.8
Also do the initOIDs after creating the QApplication to
avoid qAbort() when creating the warning (introduced after 2.2.1)
2020-04-27 15:03:36 +02:00
Christian Hohnstaedt
0ac3b2daca
Improve and fix VERSION_ITERATION
2020-04-27 15:03:36 +02:00
Christian Hohnstaedt
7d5bb9ca4f
Fix newline handling
2020-04-07 15:54:16 +02:00
Christian Hohnstaedt
5cb1b45d81
console_write: takes a QByteArray instead of printf()
...
Good Windows Unicode font:
https://math.berkeley.edu/~serganov/ilyaz.org/software/fonts/
2020-04-06 22:08:04 +02:00
Christian Hohnstaedt
dd46ff7201
Fix Copy&Paste'o: Put issuer into issuer property and not subject
2020-04-06 22:07:57 +02:00
Christian Hohnstaedt
ea453d4336
Encapsulate all BIOs in the BioByteArray class
...
If we have a QByteArray (ba) and must provide it to
a BIO* expecting OpenSSL function, the following
construct provides it: BioByteArray(ba).ro()
directly providing the QByteArray buffer as BIO
It also supports mixed writes:
BIO_write(bba, buf, size)
bba += QByteArray
2020-04-06 22:07:57 +02:00
Christian Hohnstaedt
4d95912d51
Add console_write() to print also on CMD
2020-04-05 22:45:11 +02:00
Christian Hohnstaedt
b7d3e6a3cc
Merge branch 'master' into develop
2020-04-05 13:49:01 +02:00
Christian Hohnstaedt
fb5ee14911
Improve PKCS11 library loading for portable app
2020-04-05 13:12:09 +02:00
Christian Hohnstaedt
a9a4c2b2d6
remote database: Dont show error if the password was empty
...
Otherwise, first an error message is shown and then
a password is asked.
2020-04-05 13:08:47 +02:00
Christian Hohnstaedt
9d7275ef31
Accept missing "dbhistory" file
2020-04-05 10:59:00 +02:00
Christian Hohnstaedt
c528c37986
Merge branch 'master' into develop
2020-04-05 10:58:47 +02:00
Christian Hohnstaedt
4314b0ead9
constify slotid
2020-04-05 09:16:12 +02:00
Christian Hohnstaedt
500f11c9b3
Get rid of filename2bytearray and QString2filename
...
We now use QFile or its derivate XFile, who smoothly
handle unicode filenames also on windows.
The lt_dlopen() only handles "char *" not wchar_t.
Try to convert the filename with all known codecs
until we can open it.
filename2QString() remains to differently encode
filenames provided on the commandline on Windows.
2020-04-05 09:16:12 +02:00
Christian Hohnstaedt
2d0980d4f6
Use pkcs11_lib_list as model for Options:pkcs11list
...
Change pkcs11List from QListWidget to QListView
The pkcs11_lib_list holds the data of the loaded libraries.
For the model a QList "model_data" is used to
hold indexes into QList dirs to allow duplicates,
moves and removes.
On windows it now displays the paths with \ separators.
2020-04-05 09:16:12 +02:00
Christian Hohnstaedt
296ff59f3c
PKCS11 library list: Don't get confused by C: when expecting 1:
2020-04-03 21:56:37 +02:00
Christian Hohnstaedt
5543ec2fb8
Merge branch 'master' into develop
2020-04-02 07:35:18 +02:00
Christian Hohnstaedt
b41d322069
Refactor native separators / and \ on windows.
...
Always only use forward slash /
Drop all "QDir::separator()" and "nativeSeparator()"
functions. Only use it where filenames are displayed for the user.
2020-04-02 06:12:47 +02:00
Christian Hohnstaedt
66a85497b7
Improve development version calculation as 4th digit
...
The plus sign was not compatible with the WIX toolset.
The 4th digist is the number of commits since the last release.
For a tagged release it is not 00, but empty.
2020-04-01 22:56:53 +02:00
Christian Hohnstaedt
096e57ec8c
Close #70 : cant open ics file in ical on macos mojave
...
Fixed syntax errors in the ICS file.
Verified by http://ical-validator.herokuapp.com/validate/
Thanks for the service.
2020-04-01 12:29:55 +02:00
Christian Hohnstaedt
d54aa116db
Avoid unused variable warning for OpenSSL 0.9.8
2020-03-29 22:33:57 +02:00
Christian Hohnstaedt
524aff97b8
Load OID lists. Fixup for c89b6aff
2020-03-29 22:33:57 +02:00
Christian Hohnstaedt
799d3262b0
Reactivate translation of x509 expressions
2020-03-29 22:33:57 +02:00
Christian Hohnstaedt
4f1103a64f
Close #72 : Add checkbox for OCSP staple feature
...
Also support them in XCA template and transformation from
certificate and request.
2020-03-29 22:23:21 +02:00
Christian Hohnstaedt
9c55caf82f
Merge branch 'master' into develop
2020-03-23 06:53:06 +01:00
Christian Hohnstaedt
149ecda63c
Fix index-hierarchy functionality
...
create target directory and name feature "hierarchy"
2020-03-23 06:39:30 +01:00
Christian Hohnstaedt
852da61836
Fix array access
2020-03-22 08:12:38 +01:00
Christian Hohnstaedt
8cf138b409
Drop debugging code
2020-03-22 08:12:38 +01:00
Christian Hohnstaedt
92846d6b38
Close #174 : Microsoft's PVK RSA private key format
...
Support Import and export private and public PVK keys.
2020-03-22 08:12:38 +01:00