comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: ANN: Ada/SPARK ASN.1 implementation version 0.0.01
Date: Mon, 1 Aug 2016 09:18:56 -0700 (PDT)
Date: 2016-08-01T09:18:56-07:00	[thread overview]
Message-ID: <3e053880-a0b9-4b58-9344-cc08a92ab9da@googlegroups.com> (raw)
In-Reply-To: <nnn2j8$1dgr$1@gioia.aioe.org>

On Monday, August 1, 2016 at 2:51:56 AM UTC-6, Dmitry A. Kazakov wrote:
> I am interested in the TLS interface outline. Specifically, in how easy 
> it would be to integrate into a non-blocking socket-I/O driven architecture.

There's no outline for the TLS interface, yet. (Even though I did start a TLS project right after Heartbleed, I got stumped on a few points in the RFC [one of which was the ASN.1 OID in certificates] and pretty much abandoned it.)
 
> That means the TLS layer should write no more data than the output 
> buffer length, while keeping its internal state to continue when the 
> buffer becomes available, and the layer is called again.
> 
> Same when reading data from the input buffer, data get available in 
> chunks of arbitrary size. If the layer expects more data, it must return 
> to the caller, again, keeping internal state.

That's a good idea -- a task-type would probably fit the bill nicely, keeping its own state for every instance.

 
> This certainly would have impact on the implementation.

Very much so, but at this point I think outlining the interface would be a bit premature -- at the very least we need the interface for the security certificates, and for that we need an OID type.

> P.S. Simple Components presently use GNUTLS for HTTPS, SMTP, MQTT. It 
> would be great to have a native Ada TLS instead.

*nod* -- I've thought this for literally years, perhaps enough of the community feels the same way as us to actually help implementing it. (And it'll certainly be a good thing if we can make it as SPARK-verifiable as possible.)


  reply	other threads:[~2016-08-01 16:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-01  8:15 ANN: Ada/SPARK ASN.1 implementation version 0.0.01 Shark8
2016-08-01  8:16 ` Shark8
2016-08-01  8:51 ` Dmitry A. Kazakov
2016-08-01 16:18   ` Shark8 [this message]
2016-08-01 18:37     ` Dmitry A. Kazakov
2016-08-01 19:47 ` Jeffrey R. Carter
2016-08-01 21:55   ` Shark8
2016-08-01 22:14     ` Randy Brukardt
2016-08-01 23:46       ` Shark8
2016-08-01 23:42     ` Jeffrey R. Carter
2016-08-01 23:53       ` Shark8
2016-08-02  0:29         ` Jeffrey R. Carter
2016-08-02  9:01 ` ttsiodras
2016-08-02 18:47   ` p.p11
2016-08-03  7:13     ` ttsiodras
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox