tlspool
6 years agoImproved transaction handling in PulleyBack plugin (poolback)
Rick van Rein [Tue, 4 Jul 2017 09:10:42 +0000 (10:10 +0100)]
Improved transaction handling in PulleyBack plugin (poolback)
 - Collected failures within a transaction as TXN_ABORT transactional state
 - When commit fails, enact a rollback and remove transaction
 - When prepare fails, still need to invoke rollback (see documentation)

7 years agoChanges to accommodate NixOS; thanks to Joachim Schiele <qknight>
Rick van Rein [Mon, 23 Jan 2017 11:23:34 +0000 (11:23 +0000)]
Changes to accommodate NixOS; thanks to Joachim Schiele <qknight>

7 years agoAdded tool/have_db to ensure that at least empty databases exist
Rick van Rein [Fri, 2 Dec 2016 10:48:24 +0000 (10:48 +0000)]
Added tool/have_db to ensure that at least empty databases exist

7 years agoUpdates to testdata so as to build a localid.db that works with TLS-KDH
Rick van Rein [Mon, 17 Oct 2016 23:08:39 +0000 (00:08 +0100)]
Updates to testdata so as to build a localid.db that works with TLS-KDH

7 years agoMerge pull request #46 from arpa2/tls-kdh
vanrein [Mon, 17 Oct 2016 22:09:19 +0000 (00:09 +0200)]
Merge pull request #46 from arpa2/tls-kdh

Integration of TLS-KDH

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

Conflicts:
testdata/Makefile

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 agoUpdate to Handbook, to make it work on tlspool.readthedocs.io
Rick van Rein [Sun, 25 Sep 2016 20:09:41 +0000 (21:09 +0100)]
Update to Handbook, to make it work on tlspool.readthedocs.io

7 years agoAdded the TLS Pool Handbook, first edition.
Rick van Rein [Sun, 25 Sep 2016 20:04:04 +0000 (21:04 +0100)]
Added the TLS Pool Handbook, first edition.
Note: The text previews upcoming name changes for tools!

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 agoMerge branch 'master' of https://github.com/arpa2/tlspool
Rick van Rein [Wed, 24 Aug 2016 06:57:20 +0000 (07:57 +0100)]
Merge branch 'master' of https://github.com/arpa2/tlspool

7 years agoFixes to improve building
Rick van Rein [Wed, 24 Aug 2016 06:56:50 +0000 (07:56 +0100)]
Fixes to improve building

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 agoMerge pull request #43 from leenaars/patch-4
vanrein [Thu, 18 Aug 2016 12:03:10 +0000 (14:03 +0200)]
Merge pull request #43 from leenaars/patch-4

Minor textual edits of README

7 years agoMinor textual edits of README
leenaars [Thu, 18 Aug 2016 11:50:31 +0000 (13:50 +0200)]
Minor textual edits of README

Is the last part about Windows porting still relevant?

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 agoMisc changes
Rick van Rein [Thu, 11 Aug 2016 17:31:07 +0000 (18:31 +0100)]
Misc changes

7 years agoMerge pull request #41 from arpa2/configvar-apicall
vanrein [Wed, 10 Aug 2016 13:00:25 +0000 (15:00 +0200)]
Merge pull request #41 from arpa2/configvar-apicall

Configvar apicall

7 years agoAdapted tool/* to newly added tlspool_configvar() call; testdata generates properly
Rick van Rein [Wed, 10 Aug 2016 12:58:14 +0000 (13:58 +0100)]
Adapted tool/* to newly added tlspool_configvar() call; testdata generates properly

7 years agoAdded tlspool_configvar() to libtlspool
Rick van Rein [Wed, 10 Aug 2016 11:13:48 +0000 (12:13 +0100)]
Added tlspool_configvar() to libtlspool
This retrieves a value from a configvar in a default location
Also used it to locate the TLS Pool socket
There is an environment variable to accommodate this
The TLS Pool daemon will not continue to use its own code (efficiency, security)
The tool/* and perhaps tests will later be updated to use this new facility

7 years agoMerge pull request #40 from amarsman/tlspool-gui
vanrein [Tue, 9 Aug 2016 15:24:30 +0000 (17:24 +0200)]
Merge pull request #40 from amarsman/tlspool-gui

fix c++ build: multiple definition errors of pioc_...

7 years agofix c++ build: multiple definition errors of pioc_...
Aschwin Marsman [Tue, 9 Aug 2016 15:04:37 +0000 (17:04 +0200)]
fix c++ build: multiple definition errors of pioc_...

7 years agoUndone overzealous inclusion of changes in QUICKSTART.sh
Rick van Rein [Tue, 9 Aug 2016 14:53:51 +0000 (15:53 +0100)]
Undone overzealous inclusion of changes in QUICKSTART.sh

7 years agoRemoved length valexp_varchars[] dump sequence (DEBUG)
Rick van Rein [Tue, 9 Aug 2016 10:51:45 +0000 (11:51 +0100)]
Removed length valexp_varchars[] dump sequence (DEBUG)

7 years agoUpdated header files to support C++ (notably, g++)
Rick van Rein [Tue, 9 Aug 2016 10:49:25 +0000 (11:49 +0100)]
Updated header files to support C++ (notably, g++)

7 years agoMerge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui
Aschwin Marsman [Tue, 9 Aug 2016 05:26:12 +0000 (07:26 +0200)]
Merge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui

7 years agoRemoved accidentally (?) added PEM files from testdata/
Rick van Rein [Wed, 3 Aug 2016 14:51:15 +0000 (15:51 +0100)]
Removed accidentally (?) added PEM files from testdata/

7 years agoAdditional changes to SWIG-generated files (with new GIL support)
Rick van Rein [Tue, 2 Aug 2016 20:32:08 +0000 (21:32 +0100)]
Additional changes to SWIG-generated files (with new GIL support)

7 years agoAdded GIL support to the Python wrapper (sigh... after a long search)
Rick van Rein [Tue, 2 Aug 2016 20:31:15 +0000 (21:31 +0100)]
Added GIL support to the Python wrapper (sigh... after a long search)
More local changes

7 years agoMerge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui
Aschwin Marsman [Mon, 1 Aug 2016 05:00:40 +0000 (07:00 +0200)]
Merge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui

7 years agoFix of missing sys introduced by PR on https_proxy
Rick van Rein [Thu, 28 Jul 2016 14:16:54 +0000 (15:16 +0100)]
Fix of missing sys introduced by PR on https_proxy
A few improvements on the build infra for lib/* wrappers

7 years agoMerge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui
Aschwin Marsman [Thu, 28 Jul 2016 06:05:03 +0000 (08:05 +0200)]
Merge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui

7 years agoChanges to lib/*/Makefile to accommodate building without local SWIG
Rick van Rein [Wed, 27 Jul 2016 14:41:15 +0000 (16:41 +0200)]
Changes to lib/*/Makefile to accommodate building without local SWIG

7 years agoMerge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui
Aschwin Marsman [Tue, 26 Jul 2016 04:51:25 +0000 (06:51 +0200)]
Merge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui

7 years agoMerge pull request #39 from leenaars/patch-3
vanrein [Mon, 25 Jul 2016 20:12:07 +0000 (22:12 +0200)]
Merge pull request #39 from leenaars/patch-3

Add tlspool socket parameter to https_proxy

7 years agoAdd tlspool socket parameter to https_proxy
leenaars [Mon, 25 Jul 2016 17:39:49 +0000 (19:39 +0200)]
Add tlspool socket parameter to https_proxy

7 years agoParameter for socket filename to lib/python/webdemo.py
Rick van Rein [Mon, 25 Jul 2016 16:40:33 +0000 (17:40 +0100)]
Parameter for socket filename to lib/python/webdemo.py
Added swig output for lib/go to GIT repo, only rebuilt with "make veryclean"
More advances with lib/go, but not done yet

7 years agoSWIG now is not needed for lib/python, unless after "make veryclean"
Rick van Rein [Mon, 25 Jul 2016 16:21:37 +0000 (17:21 +0100)]
SWIG now is not needed for lib/python, unless after "make veryclean"

7 years agoMerge branch 'master' of https://github.com/amarsman/tlspool into tlspool-gui
Aschwin Marsman [Fri, 22 Jul 2016 15:33:36 +0000 (17:33 +0200)]
Merge branch 'master' of https://github.com/amarsman/tlspool into tlspool-gui

7 years agoMerge branch 'master' of https://github.com/arpa2/tlspool
Rick van Rein [Fri, 22 Jul 2016 13:20:16 +0000 (14:20 +0100)]
Merge branch 'master' of https://github.com/arpa2/tlspool

7 years agoDecoupled language wrappers from the main build.
Rick van Rein [Fri, 22 Jul 2016 13:18:46 +0000 (14:18 +0100)]
Decoupled language wrappers from the main build.
The C library for linking with -ltlspool is still part of the main build.
See INSTALL for more details.

7 years agoMerge pull request #37 from hfmanson/master
vanrein [Thu, 21 Jul 2016 21:12:59 +0000 (23:12 +0200)]
Merge pull request #37 from hfmanson/master

MXE cross compile

7 years agoUsing the new Python library wrapper, this makes https_proxy.py work
Rick van Rein [Thu, 21 Jul 2016 20:43:43 +0000 (21:43 +0100)]
Using the new Python library wrapper, this makes https_proxy.py work

7 years agoMerge branch 'master' of https://github.com/amarsman/tlspool into tlspool-gui
Aschwin Marsman [Thu, 21 Jul 2016 19:22:21 +0000 (21:22 +0200)]
Merge branch 'master' of https://github.com/amarsman/tlspool into tlspool-gui

7 years agoMake date command more platform independent, don't rely on a GNU extension
Aschwin Marsman [Thu, 21 Jul 2016 15:44:15 +0000 (17:44 +0200)]
Make date command more platform independent, don't rely on a GNU extension

7 years agoRemoved old-style python wrapper, added clean target for library wrappers
Rick van Rein [Wed, 20 Jul 2016 15:00:52 +0000 (16:00 +0100)]
Removed old-style python wrapper, added clean target for library wrappers

7 years agoMerge pull request #38 from arpa2/pythonwrap
vanrein [Wed, 20 Jul 2016 14:51:58 +0000 (16:51 +0200)]
Merge pull request #38 from arpa2/pythonwrap

Branch "pythonwrap" sufficiently complete to merge

7 years agoRemoved "uninstall" target from lib/python/Makefile
Rick van Rein [Wed, 20 Jul 2016 14:48:42 +0000 (15:48 +0100)]
Removed "uninstall" target from lib/python/Makefile
- This is missing in the setup.py functionality, or so it appears

7 years agoUpdate pythonwrap branch with master @ github.com
Rick van Rein [Wed, 20 Jul 2016 14:44:19 +0000 (15:44 +0100)]
Update pythonwrap branch with master @ github.com

7 years agoWorking Python wrapper and webdemo.py
Rick van Rein [Wed, 20 Jul 2016 14:41:02 +0000 (15:41 +0100)]
Working Python wrapper and webdemo.py
 - Introduced mappings in the style of Python, such as ping() with defaults
 - Can build up a tlspool.Connection() and perform TLS over it
 - Cannot currently handle control keys in Python
 - Cannot currently use callback facility in starttls()
 - Downloads a web page from a secure site (over IPv6 only)

7 years agoWorking Python wrapper, for starttls() but some other utility functions remain todo
Rick van Rein [Fri, 15 Jul 2016 08:43:09 +0000 (09:43 +0100)]
Working Python wrapper, for starttls() but some other utility functions remain todo

7 years agoA bit more development, but nothing really grand
Rick van Rein [Thu, 14 Jul 2016 13:22:35 +0000 (14:22 +0100)]
A bit more development, but nothing really grand

7 years agoMerge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui
Aschwin Marsman [Thu, 14 Jul 2016 00:33:08 +0000 (02:33 +0200)]
Merge branch 'master' of https://github.com/arpa2/tlspool into tlspool-gui

7 years agoInitial attempt, with some pieces working, of Python SWIG
Rick van Rein [Wed, 13 Jul 2016 22:01:56 +0000 (23:01 +0100)]
Initial attempt, with some pieces working, of Python SWIG

7 years agobugfix in tool/pingpool.c -- made socket path arg work
Rick van Rein [Wed, 13 Jul 2016 14:58:10 +0000 (15:58 +0100)]
bugfix in tool/pingpool.c -- made socket path arg work

7 years agoUpdated to use amarsman repositories and tlspool-gui branches, will also build tlspoo...
Aschwin Marsman [Tue, 12 Jul 2016 17:47:22 +0000 (19:47 +0200)]
Updated to use amarsman repositories and tlspool-gui branches, will also build tlspool-gui

7 years agoMXE cross compile fixes 3
Henri Manson [Tue, 12 Jul 2016 17:23:05 +0000 (19:23 +0200)]
MXE cross compile fixes 3

7 years agoMXE cross compile fixes 2
Henri Manson [Tue, 12 Jul 2016 17:20:05 +0000 (19:20 +0200)]
MXE cross compile fixes 2

7 years agoMXE cross compile fixes
Henri Manson [Tue, 12 Jul 2016 17:07:55 +0000 (19:07 +0200)]
MXE cross compile fixes

7 years agoRemove checkout of older versions.
Aschwin Marsman [Mon, 11 Jul 2016 19:33:15 +0000 (21:33 +0200)]
Remove checkout of older versions.
Fix incorrect test argument.
Fix typo.

7 years agoMerge branch 'master' of github.com:amarsman/tlspool into tlspool-gui
Aschwin Marsman [Mon, 11 Jul 2016 19:31:10 +0000 (21:31 +0200)]
Merge branch 'master' of github.com:amarsman/tlspool into tlspool-gui

7 years agochanges to make it build with a c++ compiler
Aschwin Marsman [Mon, 11 Jul 2016 19:29:28 +0000 (21:29 +0200)]
changes to make it build with a c++ compiler

7 years agoParameterised testdata/Makefile, roughly as suggested by Michiel
Rick van Rein [Wed, 6 Jul 2016 07:17:27 +0000 (08:17 +0100)]
Parameterised testdata/Makefile, roughly as suggested by Michiel
This enables using the tools from another bin directory
Testdata is meant for developers, so relative paths within Git are still default

7 years agoGotten started with a _tlspool.so module for Python
Rick van Rein [Tue, 5 Jul 2016 07:27:12 +0000 (08:27 +0100)]
Gotten started with a _tlspool.so module for Python
 - swig is doing its work nicely, already for many scripting languages
 - figured out how to compile to a Python dynamic module _tlspool.so
 - to keep languages separate, the output is named python_tlspool.so
 - it does not provide a good API to C types, so calling functions fails

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