paypro: use new string types with asn1.js fork.
This commit is contained in:
parent
be018ba6e3
commit
9d83ff3fc6
@ -286,21 +286,18 @@ rfc5280.AuthorityKeyIdentifier = asn1.define('AuthorityKeyIdentifier', function(
|
||||
var GeneralNames =
|
||||
rfc5280.GeneralNames = asn1.define('GeneralNames', function() {
|
||||
this.seqof(GeneralName);
|
||||
this.seq().obj(
|
||||
this.key('generalNames').use(GeneralName)
|
||||
);
|
||||
});
|
||||
|
||||
var GeneralName =
|
||||
rfc5280.GeneralName = asn1.define('GeneralName', function() {
|
||||
this.choice({
|
||||
otherName: this.use(OtherName),
|
||||
rfc822Name: this.use(IA5String),
|
||||
dNSName: this.use(IA5String),
|
||||
rfc822Name: this.ia5str(),
|
||||
dNSName: this.ia5str(),
|
||||
x400Address: this.use(ORAddress),
|
||||
directoryName: this.use(rfc3280.Name),
|
||||
ediPartyName: this.use(EDIPartyName),
|
||||
uniformResourceIdentifier: this.use(IA5String),
|
||||
uniformResourceIdentifier: this.ia5str(),
|
||||
iPAddress: this.octstr(),
|
||||
registeredID: this.objid()
|
||||
});
|
||||
@ -314,14 +311,6 @@ rfc5280.OtherName = asn1.define('OtherName', function() {
|
||||
);
|
||||
});
|
||||
|
||||
// https://www.google.com/search?q=IA5String
|
||||
// https://en.wikipedia.org/wiki/IA5STRING
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/bb540805(v=vs.85).aspx
|
||||
var IA5String =
|
||||
rfc5280.IA5String = asn1.define('IA5String', function() {
|
||||
this.octstr(); // unsure
|
||||
});
|
||||
|
||||
var ORAddress =
|
||||
rfc5280.ORAddress = asn1.define('ORAddress', function() {
|
||||
this.seq().obj(
|
||||
@ -354,6 +343,10 @@ rfc5280.EDIPartyName = asn1.define('EDIPartyName', function() {
|
||||
);
|
||||
});
|
||||
|
||||
// https://www.google.com/search?q=IA5String
|
||||
// https://en.wikipedia.org/wiki/IA5STRING
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/bb540805(v=vs.85).aspx
|
||||
|
||||
// https://www.google.com/search?q=TeletexString
|
||||
// http://msdn.microsoft.com/en-us/library/windows/desktop/bb540814(v=vs.85).aspx
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user