Christian Hohnstädt
496fb5e0bc
Close #251 : AuthorityKeyIdentifier: use issuer:always
...
When analysing and translating the AuthorityKeyIdentifier
extension to OpenSSL syntax, take an existing DirName
as "issuer:always", because openssle otherwise ignores it,
when the keyid succeeds.
2021-02-08 17:07:06 +01:00
Christian Hohnstädt
c90302ddd8
Close #230 : Change PKCS12 export extension from .p12 to .pfx
...
[Change Request] Consider changing PKCS12 export
extension from .p12 to .pfx by default,
as p12 is a legacy Netscape holdover,
and PFX is the 'standard' per RFC now.
2021-02-06 22:52:54 +01:00
Christian Hohnstaedt
66cff37ad9
Close #208 : XCA hung when importing EC keys. For example prime256v1
...
Fix Null-Pointer exception, which is strange, because:
- it only happens on windows
- the key still works fine
2021-02-06 22:52:54 +01:00
Christian Hohnstaedt
e9edb75442
ImportMulti: Update pointer management to always free all items
2020-10-16 00:37:12 +02:00
Christian Hohnstaedt
cbe7709b20
Close #224 : Store original path/filename on import
2020-10-16 00:37:12 +02:00
Christian Hohnstädt
ef5bb98a90
Initialize workingdir with trailing slash
...
All users of the workingdir assume it ends with a /
2020-10-15 06:21:32 +02:00
Christian Hohnstädt
0745af1d63
Fix editing revocation entries and generate CRL from that dialog
2020-10-14 19:48:18 +02:00
Christian Hohnstädt
ed29b5f3a5
Fix typo to start CRL Management
2020-10-14 19:48:18 +02:00
Christian Hohnstädt
497e4a6120
Extend Password input by filedescriptor number and automatic man page
...
Also extend the documentation about the password.
Automatically generate the man page from the options.
Call xca as "XCA_MAN=1 ./xca" to print the current man-page options
2020-10-14 19:48:18 +02:00
Christian Hohnstädt
8963590053
Create user-settings directory after creating QApplication
...
At least on OSX this is required to have
QCoreApplication::applicationName() return "xca"
2020-10-14 19:48:18 +02:00
Christian Hohnstädt
6474d6356b
Improve finding certs/requests with same key
...
The SELECT query now also only selects items of the required type:
Request / x509 certificate
This avoids error messages
2020-10-14 19:48:17 +02:00
Christian Hohnstädt
78d6b5e67c
Check XCA_ABORT_ON_WARNING envvar to abort() on any warning or worse
...
This allows easy debugging of warnings and errors
2020-10-14 19:48:17 +02:00
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