Skip to content

Commit

Permalink
minor GSSName fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cconlon committed Jul 30, 2012
1 parent ea7ecb4 commit ef3ee26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/java/edu/mit/jgss/GSSNameImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");
Expand Down Expand Up @@ -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) &&
Expand Down

0 comments on commit ef3ee26

Please sign in to comment.