Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

minor GSSName fixes

  • Loading branch information...
commit ef3ee264c76caedc12e28e865bef50de152aacb1 1 parent ea7ecb4
@cconlon authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/java/edu/mit/jgss/GSSNameImpl.java
View
5 src/java/edu/mit/jgss/GSSNameImpl.java
@@ -242,7 +242,6 @@ public int setInternGSSName(gss_name_t_desc newName) {
return 0;
}
- /* TODO - reduce redundancy in the following two importName methods */
GSSName importName(String nameStr, Oid nameType) throws GSSException {
long maj_status = 0;
@@ -265,8 +264,7 @@ GSSName importName(String nameStr, Oid nameType) throws GSSException {
!nameType.equals(GSSName.NT_USER_NAME) &&
!nameType.equals(GSSName.NT_MACHINE_UID_NAME) &&
!nameType.equals(GSSName.NT_STRING_UID_NAME) &&
- !nameType.equals(GSSName.NT_ANONYMOUS) &&
- !nameType.equals(GSSName.NT_EXPORT_NAME)) {
+ !nameType.equals(GSSName.NT_ANONYMOUS)) {
/* nametype is not supported */
if (DEBUG_ERR == true)
System.out.println("nametype not supported");
@@ -312,7 +310,6 @@ GSSName importName(byte[] nameStr, Oid nameType) throws GSSException {
/* Check supported nametypes. If it's not a supported one, or null,
throw exception */
- /* TODO: NT_EXPORT_NAME will only be called with byte[] */
if (nameType != null &&
!nameType.equals(GSSName.NT_HOSTBASED_SERVICE) &&
!nameType.equals(GSSName.NT_USER_NAME) &&
Please sign in to comment.
Something went wrong with that request. Please try again.