Skip to content

Commit 9a0e9ed

Browse files
committed
tls: return fixed ASCII characters "STARTTLS" as starttls verifier
As required by current draft. Acked-by: Paul Millar Target: master
1 parent f387a9b commit 9a0e9ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

oncrpc4j-core/src/main/java/org/dcache/oncrpc4j/rpc/RpcAuthTypeTls.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
package org.dcache.oncrpc4j.rpc;
2121

2222
import java.io.IOException;
23+
import java.nio.charset.StandardCharsets;
2324
import javax.security.auth.Subject;
2425
import org.dcache.oncrpc4j.xdr.XdrAble;
2526
import org.dcache.oncrpc4j.xdr.XdrDecodingStream;
@@ -32,7 +33,8 @@
3233
*/
3334
public class RpcAuthTypeTls implements RpcAuth, XdrAble {
3435

35-
private final RpcAuthVerifier verifier = new RpcAuthVerifier(RpcAuthType.NONE, new byte[0]);
36+
private final static byte[] STARTTLS = "STARTTLS".getBytes(StandardCharsets.US_ASCII);
37+
private final RpcAuthVerifier verifier = new RpcAuthVerifier(RpcAuthType.NONE, STARTTLS);
3638

3739
@Override
3840
public int type() {

0 commit comments

Comments
 (0)