Closed toddwprice closed 8 years ago
I believe this is the correct method:
var PKIStatus = asn1.define('PKIStatus', function() {
this.int({
0: 'granted',
1: 'grantedWithMods',
2: 'rejection',
3: 'waiting',
4: 'revocationWarning',
5: 'revocationNotification'
});
});
Yep, it is! :)
I'm looking at implementing RFC 3161 (Time-Stamp Protocol) but need some guidance on defining this type:
Is there a mechanism in asn1.js for defining an INTEGER type with identifiers as specified for this PKIStatus type?