Skip to content

Commit

Permalink
Track server hostname in JSSParameters
Browse files Browse the repository at this point in the history
When using NSS as a client, SSL_SetURL must be called with the remote
host for certificate verification. Store the hostname in JSSParameters
so we can set it later in the JSSEngine.

Signed-off-by: Alexander Scheel <[email protected]>
  • Loading branch information
cipherboy committed Jun 12, 2019
1 parent 3fff8fd commit 4761cfd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions org/mozilla/jss/ssl/javax/JSSParameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class JSSParameters extends SSLParameters {
private SSLCipher[] suites;
private SSLVersionRange range;
private String alias;
private String hostname;

public JSSParameters() {
// Choose our default set of SSLParameters here; default to null
Expand Down Expand Up @@ -176,4 +177,12 @@ public String getAlias() {
public void setAlias(String cert_alias) {
alias = cert_alias;
}

public String getHostname() {
return hostname;
}

public void setHostname(String server_hostname) {
hostname = server_hostname;
}
}

0 comments on commit 4761cfd

Please sign in to comment.