Merge pull request #12 from BlueSkeye/PA_DATAEncodeDeadCodeFix

Fix : Dead code removal in PA_DATA.Encode
master
Will 2019-02-05 11:29:12 -08:00 committed by GitHub
commit 57fdc0a35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -122,7 +122,6 @@ namespace Rubeus
else if (type == Interop.PADATA_TYPE.AP_REQ) else if (type == Interop.PADATA_TYPE.AP_REQ)
{ {
// used for TGS-REQs // used for TGS-REQs
//paDataElt = ((AP_REQ)value).Encode(); //needed?
AsnElt blob = AsnElt.MakeBlob(((AP_REQ)value).Encode().Encode()); AsnElt blob = AsnElt.MakeBlob(((AP_REQ)value).Encode().Encode());
AsnElt blobSeq = AsnElt.Make(AsnElt.SEQUENCE, new AsnElt[] { blob }); AsnElt blobSeq = AsnElt.Make(AsnElt.SEQUENCE, new AsnElt[] { blob });
@ -134,7 +133,6 @@ namespace Rubeus
else if (type == Interop.PADATA_TYPE.S4U2SELF) else if (type == Interop.PADATA_TYPE.S4U2SELF)
{ {
// used for constrained delegation // used for constrained delegation
paDataElt = ((PA_FOR_USER)value).Encode();
AsnElt blob = AsnElt.MakeBlob(((PA_FOR_USER)value).Encode().Encode()); AsnElt blob = AsnElt.MakeBlob(((PA_FOR_USER)value).Encode().Encode());
AsnElt blobSeq = AsnElt.Make(AsnElt.SEQUENCE, new AsnElt[] { blob }); AsnElt blobSeq = AsnElt.Make(AsnElt.SEQUENCE, new AsnElt[] { blob });
@ -145,7 +143,6 @@ namespace Rubeus
} }
else if (type == Interop.PADATA_TYPE.PA_PAC_OPTIONS) else if (type == Interop.PADATA_TYPE.PA_PAC_OPTIONS)
{ {
paDataElt = ((PA_PAC_OPTIONS)value).Encode();
AsnElt blob = AsnElt.MakeBlob(((PA_PAC_OPTIONS)value).Encode().Encode()); AsnElt blob = AsnElt.MakeBlob(((PA_PAC_OPTIONS)value).Encode().Encode());
AsnElt blobSeq = AsnElt.Make(AsnElt.SEQUENCE, new AsnElt[] { blob }); AsnElt blobSeq = AsnElt.Make(AsnElt.SEQUENCE, new AsnElt[] { blob });