* [Qemu-devel] [PATCH] doc/proto.md: NBD_OPT_STARTTLS cannot be used twice
@ 2016-04-06 10:50 Alex Bligh
2016-04-06 12:26 ` Eric Blake
0 siblings, 1 reply; 2+ messages in thread
From: Alex Bligh @ 2016-04-06 10:50 UTC (permalink / raw)
To: Eric Blake, Wouter Verhelst
Cc: nbd-general@lists.sourceforge.net, qemu-devel@nongnu.org,
Alex Bligh
Currently doc/proto.md is silent on use of NBD_OPT_STARTTLS when
TLS has already been negotiated. Make it clear that this is not
permitted.
Signed-off-by: Alex Bligh <alex@alex.org.uk>
---
doc/proto.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/doc/proto.md b/doc/proto.md
index 4d63b23..3648fa3 100644
--- a/doc/proto.md
+++ b/doc/proto.md
@@ -399,7 +399,10 @@ of the newstyle negotiation.
`NBD_REP_ERR_POLICY`. For backwards compatibility, a client should
also be prepared to handle `NBD_REP_ERR_UNSUP`. If the client sent
along any data with the request, the server should send back
- `NBD_REP_ERR_INVALID`.
+ `NBD_REP_ERR_INVALID`. The client MUST NOT send this option if
+ it has already negotiated TLS; if the server receives
+ `NBD_OPT_STARTTLS` when TLS has already been negotiated, the server
+ MUST send back `NBD_REP_ERR_INVALID`.
This functionality has not yet been implemented by the reference
implementation, but was implemented by qemu so has been moved out of
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] doc/proto.md: NBD_OPT_STARTTLS cannot be used twice
2016-04-06 10:50 [Qemu-devel] [PATCH] doc/proto.md: NBD_OPT_STARTTLS cannot be used twice Alex Bligh
@ 2016-04-06 12:26 ` Eric Blake
0 siblings, 0 replies; 2+ messages in thread
From: Eric Blake @ 2016-04-06 12:26 UTC (permalink / raw)
To: Alex Bligh, Wouter Verhelst
Cc: nbd-general@lists.sourceforge.net, qemu-devel@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 487 bytes --]
On 04/06/2016 04:50 AM, Alex Bligh wrote:
> Currently doc/proto.md is silent on use of NBD_OPT_STARTTLS when
> TLS has already been negotiated. Make it clear that this is not
> permitted.
>
> Signed-off-by: Alex Bligh <alex@alex.org.uk>
> ---
> doc/proto.md | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-06 12:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-06 10:50 [Qemu-devel] [PATCH] doc/proto.md: NBD_OPT_STARTTLS cannot be used twice Alex Bligh
2016-04-06 12:26 ` Eric Blake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).