lib/VOMS/Lite/OID.pm untested

filter: Statementstmt 0.0% 0 / 209 Branchbran 0.0% 0 / 394 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 607 CC 198 SCAR 105.7
CC
198
Cov
0%
OIDS
39402.0
BEGIN
2.0
BEGIN
2.0
CRAP 39008.0
1 package VOMS::Lite::OID;
2  
3 require Exporter;
4 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
5 @ISA = qw(Exporter);
6  
7 $VERSION = '0.20';
8  
9 sub OIDS {
10 my $OID=shift;
11 my @OID=split /\./,$OID;
12  
13 if ( $OID[0] == "1" ) {
14 if ( $OID[1] == "2" ) {
15 if ( $OID[2] == "840" ) {
16 if ( $OID[3] == "113549" ) {
17 if ( $OID[4] == "1" ) {
18 if ( $OID[5] == "1" ) {
19 if ( $OID[6] == "1" ) { return "rSAEncription"; }
20 elsif ( $OID[6] == "2" ) { return "md2WithRSAEncription"; }
21 elsif ( $OID[6] == "3" ) { return "md4WithRSAEncryption"; }
22 elsif ( $OID[6] == "4" ) { return "md5WithRSAEncryption"; }
23 elsif ( $OID[6] == "5" ) { return "sha1WithRSAEncryption"; }
24 elsif ( $OID[6] == "6" ) { return "rsaOAEPEncryptionSET"; }
25 }
26 elsif ( $OID[5] == "9" ) {
27 if ( $OID[6] == "1" ) { return "e-mailAddress"; }
28 elsif ( $OID[6] == "2" ) { return "PKCS-9 unstructuredName"; }
29 elsif ( $OID[6] == "3" ) { return "contentType"; }
30 elsif ( $OID[6] == "4" ) { return "messageDigest"; }
31 elsif ( $OID[6] == "5" ) { return "Signing Time"; }
32 elsif ( $OID[6] == "7" ) { return "Challenge Password"; }
33 elsif ( $OID[6] == "8" ) { return "PKCS-9 unstructuredAddress"; }
34 elsif ( $OID[6] == "13" ) { return "Signing Description"; }
35 elsif ( $OID[6] == "15" ) { return "S/Mime capabilities"; }
36 elsif ( $OID[6] == "16" ) { return "S/MIME Object Identifier Registry"; }
37 elsif ( $OID[6] == "20" ) { return "PKCS-9 Attribute : friendlyName"; }
38 elsif ( $OID[6] == "22" ) { return "certTypes"; }
39 }
40 }
41 }
42 }
43 }
44 elsif ( $OID[1] == "3" ) {
45 if ( $OID[2] == "6" ) {
46 if ( $OID[3] == "1" ) {
47 if ( $OID[4] == "4" ) {
48 if ( $OID[5] == "1" ) {
49 if ( $OID[6] == "8005" ) {
50 if ( $OID[7] == "100" ) {
51 if ( $OID[8] == "100" ) {
52 if ( $OID[9] == "1" ) { return "vOMSvoms"; } #Obsolite
53 elsif ( $OID[9] == "2" ) { return "vOMSIncludeFile"; }
54 elsif ( $OID[9] == "3" ) { return "vOMSvO"; }
55 elsif ( $OID[9] == "4" ) { return "vOMSAttributes"; } #SEQ {OS{triple}.OS{triple}
56 elsif ( $OID[9] == "5" ) { return "vOMSAssertions"; } #SEQ of Attribute certificates
57 elsif ( $OID[9] == "6" ) { return "vOMSOrder"; } #Obsolite
58 elsif ( $OID[9] == "9" ) { return "vOMSTagContainer"; }
59 elsif ( $OID[9] == "10" ) { return "vOMSACCertList"; } #SEQ x509certs
60 }
61 }
62 }
63 }
64 }
65 }
66 }
67 }
68 }
69 elsif ( $OID[0] == "2" ) {
70 if ( $OID[1] == "5" ) {
71 if ( $OID[2] == "4" ) {
72 if ( $OID[3] == "0" ) { return "objectClass"; }
73 elsif ( $OID[3] == "1" ) {return "aliasedEntryName";}
74 elsif ( $OID[3] == "2" ) {return "knowldgeinformation";}
75 elsif ( $OID[3] == "3" ) {return "commonName";}
76 elsif ( $OID[3] == "4" ) {return "surname";}
77 elsif ( $OID[3] == "5" ) {return "serialNumber";}
78 elsif ( $OID[3] == "6" ) {return "countryName";}
79 elsif ( $OID[3] == "7" ) {return "localityName";}
80 elsif ( $OID[3] == "8" ) {return "stateOrProvinceName";}
81 elsif ( $OID[3] == "9" ) {return "streetAddress";}
82 elsif ( $OID[3] == "10" ) {return "organizationName";}
83 elsif ( $OID[3] == "11" ) {return "organizationalUnitName";}
84 elsif ( $OID[3] == "12" ) {return "title";}
85 elsif ( $OID[3] == "13" ) {return "description";}
86 elsif ( $OID[3] == "14" ) {return "searchGuide";}
87 elsif ( $OID[3] == "15" ) {return "businessCategory";}
88 elsif ( $OID[3] == "16" ) {return "postalAddress";}
89 elsif ( $OID[3] == "17" ) {return "postalCode";}
90 elsif ( $OID[3] == "18" ) {return "postOfficeBox";}
91 elsif ( $OID[3] == "19" ) {return "physicalDeliveryOfficeName";}
92 elsif ( $OID[3] == "20" ) {return "telephoneNumber";}
93 elsif ( $OID[3] == "21" ) {return "telexNumber";}
94 elsif ( $OID[3] == "22" ) {return "teletexTerminalIdentifier";}
95 elsif ( $OID[3] == "23" ) {return "facsimileTelephoneNumber";}
96 elsif ( $OID[3] == "24" ) {return "x121Address";}
97 elsif ( $OID[3] == "25" ) {return "internationalISDNNumber";}
98 elsif ( $OID[3] == "26" ) {return "registeredAddress";}
99 elsif ( $OID[3] == "27" ) {return "destinationIndicator";}
100 elsif ( $OID[3] == "28" ) {return "preferredDeliveryMethod";}
101 elsif ( $OID[3] == "29" ) {return "presentationAddress";}
102 elsif ( $OID[3] == "30" ) {return "supportedApplicationContext";}
103 elsif ( $OID[3] == "31" ) {return "member";}
104 elsif ( $OID[3] == "32" ) {return "owner";}
105 elsif ( $OID[3] == "33" ) {return "roleOccupant";}
106 elsif ( $OID[3] == "34" ) {return "seeAlso";}
107 elsif ( $OID[3] == "35" ) {return "userPassword";}
108 elsif ( $OID[3] == "36" ) {return "userCertificate";}
109 elsif ( $OID[3] == "37" ) {return "cACertificate";}
110 elsif ( $OID[3] == "38" ) {return "authorityRevocationList";}
111 elsif ( $OID[3] == "39" ) {return "certificateRevocationList";}
112 elsif ( $OID[3] == "40" ) {return "crossCertificatePair";}
113 elsif ( $OID[3] == "41" ) {return "name";}
114 elsif ( $OID[3] == "42" ) {return "givenName";}
115 elsif ( $OID[3] == "43" ) {return "initials";}
116 elsif ( $OID[3] == "44" ) {return "generationQualifier";}
117 elsif ( $OID[3] == "45" ) {return "uniqueIdentifier";}
118 elsif ( $OID[3] == "46" ) {return "dnQualifier";}
119 elsif ( $OID[3] == "47" ) {return "enhancedSearchGuide";}
120 elsif ( $OID[3] == "48" ) {return "protocolInformation";}
121 elsif ( $OID[3] == "49" ) {return "distinguishedName";}
122 elsif ( $OID[3] == "50" ) {return "uniqueMember";}
123 elsif ( $OID[3] == "51" ) {return "houseIdentifier";}
124 elsif ( $OID[3] == "52" ) {return "supportedAlgorithms";}
125 elsif ( $OID[3] == "53" ) {return "deltaRevocationList";}
126 elsif ( $OID[3] == "58" ) {return "attributeCertificate";}
127 elsif ( $OID[3] == "65" ) {return "pseudonym";}
128 }
129 elsif ( $OID[2] == "29" ) {
130 if ( $OID[3] == "1" ) { return "old Authority Key Identifier"; }
131 elsif ( $OID[3] == "2" ) {return "old Primary Key Attributes";}
132 elsif ( $OID[3] == "3" ) {return "Certificate Policies";}
133 elsif ( $OID[3] == "4" ) {return "Primary Key Usage Restriction";}
134 elsif ( $OID[3] == "14" ) {return "Subject Key Identifier";}
135 elsif ( $OID[3] == "15" ) {return "Key Usage";}
136 elsif ( $OID[3] == "16" ) {return "Private Key Usage Period";}
137 elsif ( $OID[3] == "17" ) {return "Subject Alternative Name";}
138 elsif ( $OID[3] == "18" ) {return "Issuer Alternative Name";}
139 elsif ( $OID[3] == "19" ) {return "Basic Constraints";}
140 elsif ( $OID[3] == "20" ) {return "CRL Number";}
141 elsif ( $OID[3] == "21" ) {return "Reason code";}
142 elsif ( $OID[3] == "23" ) {return "Hold Instruction Code";}
143 elsif ( $OID[3] == "24" ) {return "Invalidity Date";}
144 elsif ( $OID[3] == "27" ) {return "Delta CRL indicator";}
145 elsif ( $OID[3] == "28" ) {return "Issuing Distribution Point";}
146 elsif ( $OID[3] == "29" ) {return "Certificate Issuer";}
147 elsif ( $OID[3] == "30" ) {return "Name Constraints";}
148 elsif ( $OID[3] == "31" ) {return "CRL Distribution Points";}
149 elsif ( $OID[3] == "32" ) {return "Certificate Policies";}
150 elsif ( $OID[3] == "33" ) {return "Policy Mappings";}
151 elsif ( $OID[3] == "35" ) {return "Authority Key Identifier";}
152 elsif ( $OID[3] == "36" ) {return "Policy Constraints";}
153 elsif ( $OID[3] == "37" ) {return "Extended key usage";}
154 elsif ( $OID[3] == "46" ) {return "FreshestCRL";}
155 elsif ( $OID[3] == "54" ) {return "X.509 version 3 certificate extension Inhibit Any-policy";}
156 elsif ( $OID[3] == "56" ) {return "noRevAvail";}
157 }
158 }
159 elsif ( $OID[1] == "16" ) {
160 if ( $OID[2] == "840" ) {
161 if ( $OID[3] == "1" ) {
162 if ( $OID[4] == "113730" ) { # Netscape
163 if ( $OID[5] == "1" ) { #Netscape certificate extension
164 if ( $OID[6] == "1" ) { return "Netscape certificate type";}
165 elsif ( $OID[6] == "2" ) { return "Base URL";}
166 elsif ( $OID[6] == "3" ) { return "Revocation URL";}
167 elsif ( $OID[6] == "4" ) { return "CA Revocation URL";}
168 elsif ( $OID[6] == "7" ) { return "Renewal URL";}
169 elsif ( $OID[6] == "8" ) { return "Netscape CA policy URL";}
170 elsif ( $OID[6] == "12" ) { return "SSL server name";}
171 elsif ( $OID[6] == "13" ) { return "Netscape certificate comment";}
172 }
173 elsif ( $OID[5] == "2" ) { return "Netscape Data Type";}
174 elsif ( $OID[5] == "3" ) { #Netscape LDAP
175 if ( $OID[6] == "1" ) { #Netscape LDAP attribute types
176 if ( $OID[7] == "5" ) { return "changeNumber";}
177 elsif ( $OID[7] == "7" ) { return "changeType";}
178 elsif ( $OID[7] == "8" ) { return "changes";}
179 elsif ( $OID[7] == "12" ) { return "mailAccessDomain";}
180 elsif ( $OID[7] == "14" ) { return "mailAccessDomain";}
181 elsif ( $OID[7] == "15" ) { return "mailAutoReplyText";}
182 elsif ( $OID[7] == "17" ) { return "mailForwardingAddress";}
183 elsif ( $OID[7] == "35" ) { return "changeLog";}
184 elsif ( $OID[7] == "36" ) { return "nsLicensedFor";}
185 elsif ( $OID[7] == "40" ) { return "userSMIMECertificate";}
186 elsif ( $OID[7] == "241" ) { return "DisplayName attribute";}
187 elsif ( $OID[7] == "692" ) { return "inetUserStatus";}
188 }
189 elsif ( $OID[6] == "2" ) { return"Netscape LDAP object classes";}
190 elsif ( $OID[6] == "3" ) { return"Netscape LDAP matching rules";}
191 elsif ( $OID[6] == "4" ) { #Netscape LDAPv3 controls
192 if ( $OID[7] == "2" ) { return "Manage DSA IT LDAPv3 control";}
193 elsif ( $OID[7] == "3" ) { return "Persistent Search LDAPv3 control";}
194 elsif ( $OID[7] == "4" ) { return "Netscape Password Expired LDAPv3 control";}
195 elsif ( $OID[7] == "5" ) { return "Netscape Password Expiring LDAPv3 control";}
196 elsif ( $OID[7] == "6" ) { return "Netscape NT Synchronization Client LDAPv3 control";}
197 elsif ( $OID[7] == "7" ) { return "Entry Change Notification LDAPv3 control";}
198 elsif ( $OID[7] == "8" ) { return "Transaction ID Request Control";}
199 elsif ( $OID[7] == "9" ) { return "VLV Request LDAPv3 control";}
200 elsif ( $OID[7] == "10" ) { return "VLV Response LDAPv3 control";}
201 elsif ( $OID[7] == "11" ) { return "Transaction ID Response Control";}
202 elsif ( $OID[7] == "12" ) { return "Proxied Authorization (version 1) control";}
203 elsif ( $OID[7] == "13" ) { return "iPlanet Directory Server Replication Update Information Control";}
204 elsif ( $OID[7] == "14" ) { return "iPlanet Directory Server \"search on specific backend\" control";}
205 elsif ( $OID[7] == "15" ) { return "Authentication Response Control";}
206 elsif ( $OID[7] == "16" ) { return "Real Attributes Only Request Control";}
207 elsif ( $OID[7] == "17" ) { return "Real Attributes Only Request Control";}
208 elsif ( $OID[7] == "18" ) { return "Proxied Authorization (version 2) Control";}
209 elsif ( $OID[7] == "999" ) { return "iPlanet Replication Modrdn Extra Mods Control";}
210 }
211 elsif ( $OID[6] == "5" ) { #Netscape LDAPv3 extended operations
212 if ( $OID[7] == "1" ) { return "Transaction Request Extended Operation";}
213 elsif ( $OID[7] == "2" ) { return "Transaction Response Extended Operation";}
214 elsif ( $OID[7] == "3" ) { return "Transaction Response Extended Operation";}
215 elsif ( $OID[7] == "4" ) { return "iPlanet Replication Response Extended Operation";}
216 elsif ( $OID[7] == "5" ) { return "iPlanet End Replication Request Extended Operation";}
217 elsif ( $OID[7] == "6" ) { return "iPlanet Replication Entry Request Extended Operation";}
218 elsif ( $OID[7] == "7" ) { return "iPlanet Bulk Import Start Extended Operation";}
219 elsif ( $OID[7] == "8" ) { return "iPlanet Bulk Import Finished Extended Operation";}
220 elsif ( $OID[7] == "9" ) { return "iPlanet Digest Authentication Calculation Extended Operation";}
221 }
222 elsif ( $OID[6] == "6" ) { #Netscape miscellaneous OIDs arc
223 if ( $OID[7] == "1" ) { return "ISO/ITU-T jointly assigned OIDs";}
224 elsif ( $OID[7] == "2" ) { return "iPlanet Total Update Replication Protocol Identifier";}
225 }
226 }
227 elsif ( $OID[5] == "4" ) { #Netscape Policy
228 if ( $OID[6] == "1" ) { return "Netscape Server Gated Crypto (nsSGC)";}
229 }
230 elsif ( $OID[5] == "5" ) { return "Netscape Certificate Server"; }
231 elsif ( $OID[5] == "6" ) { return "Netscape Algorithm "; }
232 elsif ( $OID[5] == "7" ) { #Netscape Name Component
233 if ( $OID[6] == "1" ) { return "Netscape Nickname";}
234 elsif ( $OID[6] == "2" ) { return "AOL Screenname";}
235 }
236 }
237 }
238 }
239 }
240 }
241 return $OID;
242 }
243  
244 1;