Skip to contentSkip to conversation

doc/proto.md: NBD_OPT_STARTTLS cannot be used twice

PATCH In review Alex Bligh 2 participants 2 messages Apr 6, 2016

lore
Share & tools
lore

Alex Bligh

author
#0 lore raw

PATCH 1/1 doc/proto.md: NBD_OPT_STARTTLS cannot be used twice

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.

---
 doc/proto.md | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
doc/proto.md +4 -1
index 4d63b23..3648fa3 100644
@@ -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
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · 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.

---
 doc/proto.md | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org