Skip to content

Commit

Permalink
tls: return fixed ASCII characters "STARTTLS" as starttls verifier
Browse files Browse the repository at this point in the history
As required by current draft.

Acked-by: Paul Millar
Target: master
  • Loading branch information
kofemann committed May 7, 2019
1 parent f387a9b commit 9a0e9ed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package org.dcache.oncrpc4j.rpc;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import javax.security.auth.Subject;
import org.dcache.oncrpc4j.xdr.XdrAble;
import org.dcache.oncrpc4j.xdr.XdrDecodingStream;
Expand All @@ -32,7 +33,8 @@
*/
public class RpcAuthTypeTls implements RpcAuth, XdrAble {

private final RpcAuthVerifier verifier = new RpcAuthVerifier(RpcAuthType.NONE, new byte[0]);
private final static byte[] STARTTLS = "STARTTLS".getBytes(StandardCharsets.US_ASCII);
private final RpcAuthVerifier verifier = new RpcAuthVerifier(RpcAuthType.NONE, STARTTLS);

@Override
public int type() {
Expand Down

0 comments on commit 9a0e9ed

Please sign in to comment.