tlspool
7 years agoMerge branch 'tls-kdh' of https://github.com/arpa2/tlspool into tls-kdh
Rick van Rein [Mon, 17 Oct 2016 22:02:01 +0000 (23:02 +0100)]
Merge branch 'tls-kdh' of https://github.com/arpa2/tlspool into tls-kdh

Conflicts:
tool/get_localid.c

7 years agoFixes of memory leaks in TLS-KDH handling
Rick van Rein [Mon, 17 Oct 2016 21:31:02 +0000 (22:31 +0100)]
Fixes of memory leaks in TLS-KDH handling

7 years agoFirst working TLS-KDH system! (Still with possible memleaks)
Rick van Rein [Mon, 17 Oct 2016 19:33:00 +0000 (20:33 +0100)]
First working TLS-KDH system!  (Still with possible memleaks)

7 years agoNow passing Ticket and Authenticator between client and server
Rick van Rein [Thu, 25 Aug 2016 14:42:24 +0000 (15:42 +0100)]
Now passing Ticket and Authenticator between client and server
 - tested for the KDH-only mode, without server certificate
 - including a keytab for `generic/testsrv\@tlspool.arpa2.lab@ARPA2.NET`

7 years agoNow returning properly from cli_kdhsig_encode()
Rick van Rein [Fri, 19 Aug 2016 10:10:18 +0000 (11:10 +0100)]
Now returning properly from cli_kdhsig_encode()
- simply forgot to add terminators to the syntax packers
- have not checked the actual data produced

7 years agoMostly working-ish, with problems in Quick DER and GnuTLS-KDH remaining
Rick van Rein [Fri, 19 Aug 2016 08:34:17 +0000 (09:34 +0100)]
Mostly working-ish, with problems in Quick DER and GnuTLS-KDH remaining
- issue in   TLS Pool: PIN entry does not work
- issue in  Quick DER: der_pack() returns incredibly large size
- issue in GnuTLS-KDH: crashes on gcm/hash size
- issue in GnuTLS-KDH: gnutls_certificate_get_peers() is empty under KDH
This release bails out of cli_kdhsig_encode(), causing GNUTLS_E_USER_ERROR

7 years agoFirst version that seems to get the ticket accross (due to hacks)
Rick van Rein [Wed, 17 Aug 2016 08:08:12 +0000 (09:08 +0100)]
First version that seems to get the ticket accross (due to hacks)
The hacks are marked to be overruled #if TOM_IS_WEG

7 years agoNow running all the way up to the reception of Certificate Request
Rick van Rein [Sun, 3 Jul 2016 18:03:36 +0000 (19:03 +0100)]
Now running all the way up to the reception of Certificate Request
This is in combination with GnuTLS-KDH 63f3e43bfb19a9105004e6dc3b278d5fdec0ff3a

7 years agoWorking up to and including clisrv_cert_retrieve()
Rick van Rein [Sun, 3 Jul 2016 16:02:39 +0000 (17:02 +0100)]
Working up to and including clisrv_cert_retrieve()
 - It fails with GnuTLS error -87, No supported cipher suites have been found.
 - This is after returning a Kerberos ticket (both empty and DER NULL)

7 years agoLast (AFAIK) functional extension to TLS-KDH
Rick van Rein [Sat, 2 Jul 2016 10:13:31 +0000 (11:13 +0100)]
Last (AFAIK) functional extension to TLS-KDH
 - overlooked retrieval of data from client's Ticket into server cmd->...
 - removed cmd->krb_tkt as it was never really needed
 - kept cmd->krb_key for decryption of what comes up next
 - added cmd->krbid_client for client principal, assured by both KDH modes
 - added cmd->krbid_server for server principal, assured by only KDH-Only
 - considering cmd->krbid_XXX to be verified identities after gnutls_handshake()
 - checked against change of server ID after it starts with user-to-user
 - it compiles, but let's not ship it quite yet

7 years agoMisc improvements
Rick van Rein [Fri, 1 Jul 2016 22:10:38 +0000 (23:10 +0100)]
Misc improvements
 - malloc() now matched by free() in cli_kdhsig_encode()
 - better GnuTLS error codes: E_DE/ENCRYPTION_FAILED, etc.

7 years agoAdded srv_kdhsig_decode() to help verification of the Kerberos "signature"
Rick van Rein [Fri, 1 Jul 2016 19:37:55 +0000 (20:37 +0100)]
Added srv_kdhsig_decode() to help verification of the Kerberos "signature"
 - Unpack the EncryptedData
 - Decrypt the EncryptedData with the key at hand
 - Unpack the Authenticator
 - Somewhat validate the Authenticator
 - Deliver information from the Authenticator

7 years agoUpdate on cli_kdhsig_encode()
Rick van Rein [Fri, 1 Jul 2016 18:52:22 +0000 (19:52 +0100)]
Update on cli_kdhsig_encode()
 - new data field in include file

7 years agoIntroduced compiling cli_kdhsig_encode()
Rick van Rein [Fri, 1 Jul 2016 18:51:06 +0000 (19:51 +0100)]
Introduced compiling cli_kdhsig_encode()
 - Construct an Authenticator
 - Deliver it in dec_authenticator
 - Encrypt the Authenticator and wrap it in EncryptedData
 - Deliver that in enc_authenticator

7 years agoCompiling code to supply Tickets as certificates to GnuTLS' TLS-KDH extension
Rick van Rein [Fri, 1 Jul 2016 12:39:13 +0000 (13:39 +0100)]
Compiling code to supply Tickets as certificates to GnuTLS' TLS-KDH extension
 - As a client, provide a service ticket
 - As a KDH-Only server, consider user-to-user mode instead of client-to-service
 - In user-to-user mode, select a server TGT and supply it
 - In client-to-service mode, select no server ticket (instead, supply 0 bytes)

7 years agoLooking good: have_key_tgt() produce a keyblock + creds in various ways
Rick van Rein [Thu, 30 Jun 2016 22:25:53 +0000 (23:25 +0100)]
Looking good: have_key_tgt() produce a keyblock + creds in various ways

7 years agoRemodelled contexts (split for clients / servers) and started have_key_ctx()
Rick van Rein [Thu, 30 Jun 2016 20:17:51 +0000 (21:17 +0100)]
Remodelled contexts (split for clients / servers) and started have_key_ctx()

7 years agoPotential extra precaution at setup of Kerberos.
Rick van Rein [Thu, 30 Jun 2016 14:58:41 +0000 (15:58 +0100)]
Potential extra precaution at setup of Kerberos.

7 years agoPotential extra precaution during startup of Kerberos
Rick van Rein [Thu, 30 Jun 2016 14:58:07 +0000 (15:58 +0100)]
Potential extra precaution during startup of Kerberos

7 years agoAdded keyblock to session, and cleanup at the end of the handshake
Rick van Rein [Thu, 30 Jun 2016 14:11:12 +0000 (15:11 +0100)]
Added keyblock to session, and cleanup at the end of the handshake

7 years agoSetup and cleanup for Kerberos: check colletion support on credential caches
Rick van Rein [Thu, 30 Jun 2016 13:52:10 +0000 (14:52 +0100)]
Setup and cleanup for Kerberos: check colletion support on credential caches

7 years agoCreated configuration variabels for Kerberos keytab,credcache of cli,srv
Rick van Rein [Thu, 30 Jun 2016 13:34:59 +0000 (14:34 +0100)]
Created configuration variabels for Kerberos keytab,credcache of cli,srv

7 years agoFirst attempt at making TLS-KDH work with the TLS Pool
Rick van Rein [Mon, 27 Jun 2016 18:46:00 +0000 (19:46 +0100)]
First attempt at making TLS-KDH work with the TLS Pool

7 years agoAdded priority string with asymmetric certificate type support (RFC 7250)
Rick van Rein [Mon, 30 May 2016 13:45:34 +0000 (14:45 +0100)]
Added priority string with asymmetric certificate type support (RFC 7250)

7 years agoInitial use of proposed GUI for TLS-KDH
Rick van Rein [Mon, 30 May 2016 11:34:14 +0000 (13:34 +0200)]
Initial use of proposed GUI for TLS-KDH

7 years agoFixes of memory leaks in TLS-KDH handling
Rick van Rein [Mon, 17 Oct 2016 21:31:02 +0000 (22:31 +0100)]
Fixes of memory leaks in TLS-KDH handling

7 years agoFirst working TLS-KDH system! (Still with possible memleaks)
Rick van Rein [Mon, 17 Oct 2016 19:33:00 +0000 (20:33 +0100)]
First working TLS-KDH system!  (Still with possible memleaks)

7 years agoNow passing Ticket and Authenticator between client and server
Rick van Rein [Thu, 25 Aug 2016 14:42:24 +0000 (15:42 +0100)]
Now passing Ticket and Authenticator between client and server
 - tested for the KDH-only mode, without server certificate
 - including a keytab for `generic/testsrv\@tlspool.arpa2.lab@ARPA2.NET`

7 years agoNow returning properly from cli_kdhsig_encode()
Rick van Rein [Fri, 19 Aug 2016 10:10:18 +0000 (11:10 +0100)]
Now returning properly from cli_kdhsig_encode()
- simply forgot to add terminators to the syntax packers
- have not checked the actual data produced

7 years agoMostly working-ish, with problems in Quick DER and GnuTLS-KDH remaining
Rick van Rein [Fri, 19 Aug 2016 08:34:17 +0000 (09:34 +0100)]
Mostly working-ish, with problems in Quick DER and GnuTLS-KDH remaining
- issue in   TLS Pool: PIN entry does not work
- issue in  Quick DER: der_pack() returns incredibly large size
- issue in GnuTLS-KDH: crashes on gcm/hash size
- issue in GnuTLS-KDH: gnutls_certificate_get_peers() is empty under KDH
This release bails out of cli_kdhsig_encode(), causing GNUTLS_E_USER_ERROR

7 years agoFirst version that seems to get the ticket accross (due to hacks)
Rick van Rein [Wed, 17 Aug 2016 08:08:12 +0000 (09:08 +0100)]
First version that seems to get the ticket accross (due to hacks)
The hacks are marked to be overruled #if TOM_IS_WEG

7 years agoNow running all the way up to the reception of Certificate Request
Rick van Rein [Sun, 3 Jul 2016 18:03:36 +0000 (19:03 +0100)]
Now running all the way up to the reception of Certificate Request
This is in combination with GnuTLS-KDH 63f3e43bfb19a9105004e6dc3b278d5fdec0ff3a

7 years agoWorking up to and including clisrv_cert_retrieve()
Rick van Rein [Sun, 3 Jul 2016 16:02:39 +0000 (17:02 +0100)]
Working up to and including clisrv_cert_retrieve()
 - It fails with GnuTLS error -87, No supported cipher suites have been found.
 - This is after returning a Kerberos ticket (both empty and DER NULL)

7 years agoLast (AFAIK) functional extension to TLS-KDH
Rick van Rein [Sat, 2 Jul 2016 10:13:31 +0000 (11:13 +0100)]
Last (AFAIK) functional extension to TLS-KDH
 - overlooked retrieval of data from client's Ticket into server cmd->...
 - removed cmd->krb_tkt as it was never really needed
 - kept cmd->krb_key for decryption of what comes up next
 - added cmd->krbid_client for client principal, assured by both KDH modes
 - added cmd->krbid_server for server principal, assured by only KDH-Only
 - considering cmd->krbid_XXX to be verified identities after gnutls_handshake()
 - checked against change of server ID after it starts with user-to-user
 - it compiles, but let's not ship it quite yet

7 years agoMisc improvements
Rick van Rein [Fri, 1 Jul 2016 22:10:38 +0000 (23:10 +0100)]
Misc improvements
 - malloc() now matched by free() in cli_kdhsig_encode()
 - better GnuTLS error codes: E_DE/ENCRYPTION_FAILED, etc.

7 years agoAdded srv_kdhsig_decode() to help verification of the Kerberos "signature"
Rick van Rein [Fri, 1 Jul 2016 19:37:55 +0000 (20:37 +0100)]
Added srv_kdhsig_decode() to help verification of the Kerberos "signature"
 - Unpack the EncryptedData
 - Decrypt the EncryptedData with the key at hand
 - Unpack the Authenticator
 - Somewhat validate the Authenticator
 - Deliver information from the Authenticator

7 years agoUpdate on cli_kdhsig_encode()
Rick van Rein [Fri, 1 Jul 2016 18:52:22 +0000 (19:52 +0100)]
Update on cli_kdhsig_encode()
 - new data field in include file

7 years agoIntroduced compiling cli_kdhsig_encode()
Rick van Rein [Fri, 1 Jul 2016 18:51:06 +0000 (19:51 +0100)]
Introduced compiling cli_kdhsig_encode()
 - Construct an Authenticator
 - Deliver it in dec_authenticator
 - Encrypt the Authenticator and wrap it in EncryptedData
 - Deliver that in enc_authenticator

7 years agoCompiling code to supply Tickets as certificates to GnuTLS' TLS-KDH extension
Rick van Rein [Fri, 1 Jul 2016 12:39:13 +0000 (13:39 +0100)]
Compiling code to supply Tickets as certificates to GnuTLS' TLS-KDH extension
 - As a client, provide a service ticket
 - As a KDH-Only server, consider user-to-user mode instead of client-to-service
 - In user-to-user mode, select a server TGT and supply it
 - In client-to-service mode, select no server ticket (instead, supply 0 bytes)

7 years agoLooking good: have_key_tgt() produce a keyblock + creds in various ways
Rick van Rein [Thu, 30 Jun 2016 22:25:53 +0000 (23:25 +0100)]
Looking good: have_key_tgt() produce a keyblock + creds in various ways

7 years agoRemodelled contexts (split for clients / servers) and started have_key_ctx()
Rick van Rein [Thu, 30 Jun 2016 20:17:51 +0000 (21:17 +0100)]
Remodelled contexts (split for clients / servers) and started have_key_ctx()

7 years agoPotential extra precaution at setup of Kerberos.
Rick van Rein [Thu, 30 Jun 2016 14:58:41 +0000 (15:58 +0100)]
Potential extra precaution at setup of Kerberos.

7 years agoPotential extra precaution during startup of Kerberos
Rick van Rein [Thu, 30 Jun 2016 14:58:07 +0000 (15:58 +0100)]
Potential extra precaution during startup of Kerberos

7 years agoAdded keyblock to session, and cleanup at the end of the handshake
Rick van Rein [Thu, 30 Jun 2016 14:11:12 +0000 (15:11 +0100)]
Added keyblock to session, and cleanup at the end of the handshake

7 years agoSetup and cleanup for Kerberos: check colletion support on credential caches
Rick van Rein [Thu, 30 Jun 2016 13:52:10 +0000 (14:52 +0100)]
Setup and cleanup for Kerberos: check colletion support on credential caches

7 years agoCreated configuration variabels for Kerberos keytab,credcache of cli,srv
Rick van Rein [Thu, 30 Jun 2016 13:34:59 +0000 (14:34 +0100)]
Created configuration variabels for Kerberos keytab,credcache of cli,srv

7 years agoMerge branch 'master' of https://github.com/arpa2/tlspool into tls-kdh
Rick van Rein [Thu, 30 Jun 2016 09:48:34 +0000 (10:48 +0100)]
Merge branch 'master' of https://github.com/arpa2/tlspool into tls-kdh

7 years agoAdriaan spotted a bug with indirection
Rick van Rein [Wed, 29 Jun 2016 09:34:54 +0000 (10:34 +0100)]
Adriaan spotted a bug with indirection

7 years agoAdriaan found a few places where "make" should be "$(MAKE)"
Rick van Rein [Wed, 29 Jun 2016 09:30:29 +0000 (10:30 +0100)]
Adriaan found a few places where "make" should be "$(MAKE)"

7 years agoMerge pull request #33 from leenaars/steamworks
vanrein [Tue, 28 Jun 2016 08:11:41 +0000 (10:11 +0200)]
Merge pull request #33 from leenaars/steamworks

Some cleanups, added steamworks to QUICKSTART.sh

7 years agoQUICKSTART.sh
Michiel Leenaars [Tue, 28 Jun 2016 07:56:44 +0000 (09:56 +0200)]
QUICKSTART.sh

7 years agoMerged a recent master into the TLS-KDH version
Rick van Rein [Mon, 27 Jun 2016 18:55:44 +0000 (19:55 +0100)]
Merged a recent master into the TLS-KDH version

7 years agoFirst attempt at making TLS-KDH work with the TLS Pool
Rick van Rein [Mon, 27 Jun 2016 18:46:00 +0000 (19:46 +0100)]
First attempt at making TLS-KDH work with the TLS Pool

7 years agoDNSSEC root key configurable in tlspool.conf ; added default root key for testing
Rick van Rein [Sun, 26 Jun 2016 11:54:42 +0000 (12:54 +0100)]
DNSSEC root key configurable in tlspool.conf ; added default root key for testing

7 years agoMerged the compilation and installation of Pulleyback into the TLS Pool
Rick van Rein [Sat, 25 Jun 2016 21:02:07 +0000 (22:02 +0100)]
Merged the compilation and installation of Pulleyback into the TLS Pool
 - pulleyback is a backend for steamworks, as described on:
    - https://github.com/arpa2/steamworks/blob/master/docs/pulleyback-api.md
    - https://github.com/arpa2/tlspool/blob/master/doc/steamworks-ldap-scheme.md
    - https://github.com/arpa2/tlspool/blob/master/doc/pulleyscript.md

7 years agoMerge branch 'master' of https://github.com/arpa2/tlspool
Rick van Rein [Sat, 25 Jun 2016 20:47:36 +0000 (21:47 +0100)]
Merge branch 'master' of https://github.com/arpa2/tlspool

7 years agoPulleyback now appears to work
Rick van Rein [Sat, 25 Jun 2016 20:43:40 +0000 (21:43 +0100)]
Pulleyback now appears to work
 - The test program adds and removes disclose.db and localid.db entries
 - There are some weird interactions with the tool/get_xxx programs
 - This may be due to opening the databases with DB_RECOVER, but I'm not sure
 - Running one program at a time appears to work though
 - Also note there's been no problem interacting with programs and TLS Pool

7 years agoMerge pull request #32 from leenaars/patch-2
vanrein [Fri, 24 Jun 2016 15:36:47 +0000 (17:36 +0200)]
Merge pull request #32 from leenaars/patch-2

Small cosmetic improvements for Makefile consistency

7 years agoMakefile consistency
leenaars [Fri, 24 Jun 2016 14:58:01 +0000 (16:58 +0200)]
Makefile consistency

7 years agoUpdates to the PulleyBack simulation and Output Driver
Rick van Rein [Fri, 24 Jun 2016 14:49:16 +0000 (15:49 +0100)]
Updates to the PulleyBack simulation and Output Driver
 - it's not working though
 - BerkeleyDB is complaining about the environment upon closure
 - Sometimes the database also cannot be closed
 - Complaints about range conflicts

7 years agoPulleyScript for trust.db added
Rick van Rein [Fri, 24 Jun 2016 04:46:45 +0000 (05:46 +0100)]
PulleyScript for trust.db added

7 years agoUpdates LDAP schema for Pulley backend aimed at TLS Pool
Rick van Rein [Wed, 22 Jun 2016 10:29:31 +0000 (12:29 +0200)]
Updates LDAP schema for Pulley backend aimed at TLS Pool

7 years agoClarified PulleyBack transaction interface and got it compiling correctly
Rick van Rein [Wed, 22 Jun 2016 10:24:25 +0000 (11:24 +0100)]
Clarified PulleyBack transaction interface and got it compiling correctly
 - Dropped the notion of idempotent _commit() / _rollback()
 - Implemented the idempotent function of _prepare()
 - Caused assert() to bail out on detected-illegal calling orders
 - Not yet tested or run
 - Not yet resolved the _collaborate() functiality

7 years agoMerge pull request #31 from leenaars/stable
vanrein [Wed, 22 Jun 2016 07:30:24 +0000 (09:30 +0200)]
Merge pull request #31 from leenaars/stable

Add stable branch

7 years agoQUICKSTART.sh modified
Michiel Leenaars [Wed, 22 Jun 2016 07:04:59 +0000 (09:04 +0200)]
QUICKSTART.sh modified

7 years agoConsistent use of PKG_CONFIG
Michiel Leenaars [Wed, 22 Jun 2016 06:53:19 +0000 (08:53 +0200)]
Consistent use of PKG_CONFIG

7 years agoInitial test/pulleybacksimu.c -- opens and closes databases, dumps data
Rick van Rein [Tue, 21 Jun 2016 20:52:18 +0000 (21:52 +0100)]
Initial test/pulleybacksimu.c -- opens and closes databases, dumps data

7 years agoImproved Makefile for pulleyscript
Rick van Rein [Tue, 21 Jun 2016 16:00:35 +0000 (17:00 +0100)]
Improved Makefile for pulleyscript
 - Quoted '#' in echo statements (were interpreted as Makefile comments)

7 years agoMerge branch 'master' of /usr/local/src/tlspool-master into pulleyback
Rick van Rein [Tue, 21 Jun 2016 15:59:54 +0000 (16:59 +0100)]
Merge branch 'master' of /usr/local/src/tlspool-master into pulleyback

7 years agoImprovements to the Makefile
Rick van Rein [Tue, 21 Jun 2016 15:58:21 +0000 (16:58 +0100)]
Improvements to the Makefile
 - quoted echo statements starting with '#' (which became Makefile comment)
 - used ?= instead of ifndef

7 years agoCompleted the coding for database updates -- and it compiles
Rick van Rein [Tue, 21 Jun 2016 15:45:44 +0000 (16:45 +0100)]
Completed the coding for database updates -- and it compiles
(No running yet, though)

7 years agoAdded self->valexp, started harvesting from structures (preps update.c)
Rick van Rein [Tue, 21 Jun 2016 06:57:02 +0000 (07:57 +0100)]
Added self->valexp, started harvesting from structures (preps update.c)
 - https://github.com/arpa2/tlspool/blob/pulleyback/doc/pulleyscript.md
 - compiler breaks on "TODO;" statements in update_xxx() in update.c

7 years agoMerge branch 'master' of /usr/local/src/tlspool-master into pulleyback
Rick van Rein [Tue, 21 Jun 2016 06:26:19 +0000 (07:26 +0100)]
Merge branch 'master' of /usr/local/src/tlspool-master into pulleyback

7 years agoInitial, compiling code for Pulley backend to the TLS Pool
Rick van Rein [Tue, 21 Jun 2016 06:24:00 +0000 (07:24 +0100)]
Initial, compiling code for Pulley backend to the TLS Pool
 - https://github.com/arpa2/steamworks/blob/master/docs/pulleyback-api.md
 - API fully implemented, compiles, but not yet tested
 - update.c not incorporated in build; it still needs all database specifics

7 years agoRemoved build warnings and an unexplained linker error in test/
Rick van Rein [Tue, 21 Jun 2016 05:29:46 +0000 (06:29 +0100)]
Removed build warnings and an unexplained linker error in test/

7 years agoFixed syntax error; accidentally checked into master, sorry
Rick van Rein [Mon, 20 Jun 2016 07:25:55 +0000 (08:25 +0100)]
Fixed syntax error; accidentally checked into master, sorry

7 years agoPrepared documentation for the Pulley backend driver for the TLS Pool
Rick van Rein [Mon, 20 Jun 2016 07:18:51 +0000 (08:18 +0100)]
Prepared documentation for the Pulley backend driver for the TLS Pool

7 years agoMerge pull request #30 from arpa2/validation
vanrein [Sun, 19 Jun 2016 21:16:49 +0000 (23:16 +0200)]
Merge pull request #30 from arpa2/validation

Validation

7 years agoPreparing for inclusion of validation logic into master branch
Rick van Rein [Sun, 19 Jun 2016 21:15:42 +0000 (22:15 +0100)]
Preparing for inclusion of validation logic into master branch

7 years agoFirst delivery of the validation framework
Rick van Rein [Sun, 19 Jun 2016 21:12:51 +0000 (22:12 +0100)]
First delivery of the validation framework
 - The valexp logic has been implemented and integrated properly
 - The gnutls_validate() functionality is no longer statically run
 - Files issues #27 #28 #29 on GitHUB, with unfinished work

7 years agoMerge pull request #26 from hfmanson/master
vanrein [Sat, 18 Jun 2016 11:16:44 +0000 (13:16 +0200)]
Merge pull request #26 from hfmanson/master

bugfix uninstall make targets

7 years agobugfix uninstall make targets
Henri Manson [Sat, 18 Jun 2016 11:09:40 +0000 (13:09 +0200)]
bugfix uninstall make targets

7 years agoMerge pull request #25 from leenaars/master
vanrein [Fri, 17 Jun 2016 19:39:25 +0000 (21:39 +0200)]
Merge pull request #25 from leenaars/master

Much improved version with .conf generation for SoftHSM2 and self-updates

7 years agoMuch improved version of QUICKSTART with conf generation for SoftHSMv2 and updates
Michiel Leenaars [Fri, 17 Jun 2016 19:06:35 +0000 (21:06 +0200)]
Much improved version of QUICKSTART with conf generation for SoftHSMv2 and updates

7 years agoMerged in master (fda96751b800bf7722c247af49abbba8020b011f) (windows port)
Rick van Rein [Fri, 17 Jun 2016 10:10:51 +0000 (11:10 +0100)]
Merged in master (fda96751b800bf7722c247af49abbba8020b011f) (windows port)

7 years agoMerge commit 'fda96751b800bf7722c247af49abbba8020b011f' into validation
Rick van Rein [Fri, 17 Jun 2016 10:08:12 +0000 (11:08 +0100)]
Merge commit 'fda96751b800bf7722c247af49abbba8020b011f' into validation

Conflicts:
src/Makefile
src/starttls.c

7 years agoFixed fetch_remote_credentials(), got working tool/testcli --> tool/testsrv
Rick van Rein [Fri, 17 Jun 2016 10:00:16 +0000 (11:00 +0100)]
Fixed fetch_remote_credentials(), got working tool/testcli --> tool/testsrv

7 years agoRemoved the #warning on RAND_MAX limitedness (so Windows compiles silently)
Rick van Rein [Thu, 16 Jun 2016 18:39:49 +0000 (19:39 +0100)]
Removed the #warning on RAND_MAX limitedness (so Windows compiles silently)

7 years agoDealt with an idiot's RAND_MAX, that is even below 0xffff
Rick van Rein [Thu, 16 Jun 2016 18:30:32 +0000 (19:30 +0100)]
Dealt with an idiot's RAND_MAX, that is even below 0xffff
(and made it work more efficiently when it is 0xffffffff too)

7 years agoMerge pull request #24 from hfmanson/namedpipe
vanrein [Thu, 16 Jun 2016 15:40:57 +0000 (17:40 +0200)]
Merge pull request #24 from hfmanson/namedpipe

Native windows port daemon and libtlspool

7 years agosmall fix
Henri Manson [Thu, 16 Jun 2016 15:34:36 +0000 (17:34 +0200)]
small fix

7 years agosmall fix
Henri Manson [Thu, 16 Jun 2016 15:31:08 +0000 (17:31 +0200)]
small fix

7 years agoBuild updates on Linux to the Windows port
Rick van Rein [Thu, 16 Jun 2016 15:27:35 +0000 (16:27 +0100)]
Build updates on Linux to the Windows port

7 years agodetermine whether compiling for windows or not
Henri Manson [Thu, 16 Jun 2016 14:54:04 +0000 (16:54 +0200)]
determine whether compiling for windows or not

7 years agocleanup code
Henri Manson [Thu, 16 Jun 2016 14:43:34 +0000 (16:43 +0200)]
cleanup code

7 years agomerge with arpa2/master
Henri Manson [Thu, 16 Jun 2016 13:54:17 +0000 (15:54 +0200)]
merge with arpa2/master

7 years agoBugfix. Incomplete static typing led to a missing dereference operator.
Rick van Rein [Wed, 15 Jun 2016 21:33:12 +0000 (22:33 +0100)]
Bugfix.  Incomplete static typing led to a missing dereference operator.

7 years agoMerge pull request #21 from leenaars/patch-1
vanrein [Wed, 15 Jun 2016 18:34:23 +0000 (20:34 +0200)]
Merge pull request #21 from leenaars/patch-1

Link to DoNAI definition for user friendlyness

7 years agoCompiling version of valexp code linked in with starttls_thread()
Rick van Rein [Wed, 15 Jun 2016 18:23:30 +0000 (19:23 +0100)]
Compiling version of valexp code linked in with starttls_thread()
 * Not yet tested (or even run)
 * DONE: 2ND: Either add `remote_flags` or remove chains without any root cert
 * DONE: Setup `remote_cert_raw` in `fetch_remote_credentials()`
 * DONE: Reference `remote_cert_raw` from cmd (use in `valexp_`{`Oo`,`Gg`}`_start`)
 * DONE: Validation expression predicates can use `cmd->remote_xxx`
 * DONE: Make adjustments in `valexp_Tt_start` for correct handling of self-signed etc.
 * DONE: Cleanup `cmd->remote_xxx` when done with `starttls_thread()` + takeover
 * DONE: Invoke validation expression logic
Not all the work has been done yet:
 * DEFER: Load a PGP key ring for validation under `valexp_Tt_start()`
 * DEFER: Process `SIGUSR1` by re-reading the PGP key ring, and possibly more
 * DEFER: Process `valexp_Dd_start()` with an `online.c` profile
 * DEFER: Consider taking the validation expression out of the `disclose.db`

7 years agocross-compile makefile update
Henri Manson [Sat, 11 Jun 2016 13:18:18 +0000 (15:18 +0200)]
cross-compile makefile update