Add ARM files
[dh-make-perl] / dev / arm / libnet-ssleay-perl / libnet-ssleay-perl-1.35 / constants.c
1 /* xsub automagically generated constant evaluator function */
2
3 static double
4 constant(char* name)
5 {
6     errno = 0;
7     switch (*name) {
8     case 'A':
9         if (strEQ(name, "AT_MD5_WITH_RSA_ENCRYPTION"))
10 #ifdef SSL_AT_MD5_WITH_RSA_ENCRYPTION
11             return SSL_AT_MD5_WITH_RSA_ENCRYPTION;
12 #else
13             goto not_there;
14 #endif
15         break;
16     case 'B':
17         break;
18     case 'C':
19         if (strEQ(name, "CB_ACCEPT_EXIT"))
20 #ifdef SSL_CB_ACCEPT_EXIT
21             return SSL_CB_ACCEPT_EXIT;
22 #else
23             goto not_there;
24 #endif
25         if (strEQ(name, "CB_ACCEPT_LOOP"))
26 #ifdef SSL_CB_ACCEPT_LOOP
27             return SSL_CB_ACCEPT_LOOP;
28 #else
29             goto not_there;
30 #endif
31         if (strEQ(name, "CB_CONNECT_EXIT"))
32 #ifdef SSL_CB_CONNECT_EXIT
33             return SSL_CB_CONNECT_EXIT;
34 #else
35             goto not_there;
36 #endif
37         if (strEQ(name, "CB_CONNECT_LOOP"))
38 #ifdef SSL_CB_CONNECT_LOOP
39             return SSL_CB_CONNECT_LOOP;
40 #else
41             goto not_there;
42 #endif
43         if (strEQ(name, "CK_DES_192_EDE3_CBC_WITH_MD5"))
44 #ifdef SSL_CK_DES_192_EDE3_CBC_WITH_MD5
45             return SSL_CK_DES_192_EDE3_CBC_WITH_MD5;
46 #else
47             goto not_there;
48 #endif
49         if (strEQ(name, "CK_DES_192_EDE3_CBC_WITH_SHA"))
50 #ifdef SSL_CK_DES_192_EDE3_CBC_WITH_SHA
51             return SSL_CK_DES_192_EDE3_CBC_WITH_SHA;
52 #else
53             goto not_there;
54 #endif
55         if (strEQ(name, "CK_DES_64_CBC_WITH_MD5"))
56 #ifdef SSL_CK_DES_64_CBC_WITH_MD5
57             return SSL_CK_DES_64_CBC_WITH_MD5;
58 #else
59             goto not_there;
60 #endif
61         if (strEQ(name, "CK_DES_64_CBC_WITH_SHA"))
62 #ifdef SSL_CK_DES_64_CBC_WITH_SHA
63             return SSL_CK_DES_64_CBC_WITH_SHA;
64 #else
65             goto not_there;
66 #endif
67         if (strEQ(name, "CK_DES_64_CFB64_WITH_MD5_1"))
68 #ifdef SSL_CK_DES_64_CFB64_WITH_MD5_1
69             return SSL_CK_DES_64_CFB64_WITH_MD5_1;
70 #else
71             goto not_there;
72 #endif
73         if (strEQ(name, "CK_IDEA_128_CBC_WITH_MD5"))
74 #ifdef SSL_CK_IDEA_128_CBC_WITH_MD5
75             return SSL_CK_IDEA_128_CBC_WITH_MD5;
76 #else
77             goto not_there;
78 #endif
79         if (strEQ(name, "CK_NULL"))
80 #ifdef SSL_CK_NULL
81             return SSL_CK_NULL;
82 #else
83             goto not_there;
84 #endif
85         if (strEQ(name, "CK_NULL_WITH_MD5"))
86 #ifdef SSL_CK_NULL_WITH_MD5
87             return SSL_CK_NULL_WITH_MD5;
88 #else
89             goto not_there;
90 #endif
91         if (strEQ(name, "CK_RC2_128_CBC_EXPORT40_WITH_MD5"))
92 #ifdef SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5
93             return SSL_CK_RC2_128_CBC_EXPORT40_WITH_MD5;
94 #else
95             goto not_there;
96 #endif
97         if (strEQ(name, "CK_RC2_128_CBC_WITH_MD5"))
98 #ifdef SSL_CK_RC2_128_CBC_WITH_MD5
99             return SSL_CK_RC2_128_CBC_WITH_MD5;
100 #else
101             goto not_there;
102 #endif
103         if (strEQ(name, "CK_RC4_128_EXPORT40_WITH_MD5"))
104 #ifdef SSL_CK_RC4_128_EXPORT40_WITH_MD5
105             return SSL_CK_RC4_128_EXPORT40_WITH_MD5;
106 #else
107             goto not_there;
108 #endif
109         if (strEQ(name, "CK_RC4_128_WITH_MD5"))
110 #ifdef SSL_CK_RC4_128_WITH_MD5
111             return SSL_CK_RC4_128_WITH_MD5;
112 #else
113             goto not_there;
114 #endif
115         if (strEQ(name, "CLIENT_VERSION"))
116 #ifdef SSL_CLIENT_VERSION
117             return SSL_CLIENT_VERSION;
118 #else
119             goto not_there;
120 #endif
121         if (strEQ(name, "CT_X509_CERTIFICATE"))
122 #ifdef SSL_CT_X509_CERTIFICATE
123             return SSL_CT_X509_CERTIFICATE;
124 #else
125             goto not_there;
126 #endif
127         break;
128     case 'D':
129         break;
130     case 'E':
131       if (strEQ(name, "ERROR_NONE"))
132 #ifdef SSL_ERROR_NONE
133       return SSL_ERROR_NONE;
134 #else
135       goto not_there;
136 #endif
137       if (strEQ(name, "ERROR_SSL"))
138 #ifdef SSL_ERROR_SSL
139       return SSL_ERROR_SSL;
140 #else
141       goto not_there;
142 #endif
143       if (strEQ(name, "ERROR_SYSCALL"))
144 #ifdef SSL_ERROR_SYSCALL
145       return SSL_ERROR_SYSCALL;
146 #else
147       goto not_there;
148 #endif
149       if (strEQ(name, "ERROR_WANT_CONNECT"))
150 #ifdef SSL_ERROR_WANT_CONNECT
151       return SSL_ERROR_WANT_CONNECT;
152 #else
153       goto not_there;
154 #endif
155       if (strEQ(name, "ERROR_WANT_READ"))
156 #ifdef SSL_ERROR_WANT_READ
157       return SSL_ERROR_WANT_READ;
158 #else
159       goto not_there;
160 #endif
161       if (strEQ(name, "ERROR_WANT_WRITE"))
162 #ifdef SSL_ERROR_WANT_WRITE
163       return SSL_ERROR_WANT_WRITE;
164 #else
165       goto not_there;
166 #endif
167       if (strEQ(name, "ERROR_WANT_X509_LOOKUP"))
168 #ifdef SSL_ERROR_WANT_X509_LOOKUP
169       return SSL_ERROR_WANT_X509_LOOKUP;
170 #else
171       goto not_there;
172 #endif
173       if (strEQ(name, "ERROR_ZERO_RETURN"))
174 #ifdef SSL_ERROR_ZERO_RETURN
175       return SSL_ERROR_ZERO_RETURN;
176 #else
177       goto not_there;
178 #endif
179       break;
180     case 'F':
181         if (strEQ(name, "FILETYPE_ASN1"))
182 #ifdef SSL_FILETYPE_ASN1
183             return SSL_FILETYPE_ASN1;
184 #else
185             goto not_there;
186 #endif
187         if (strEQ(name, "FILETYPE_PEM"))
188 #ifdef SSL_FILETYPE_PEM
189             return SSL_FILETYPE_PEM;
190 #else
191             goto not_there;
192 #endif
193         if (strEQ(name, "F_CLIENT_CERTIFICATE"))
194 #ifdef SSL_F_CLIENT_CERTIFICATE
195             return SSL_F_CLIENT_CERTIFICATE;
196 #else
197             goto not_there;
198 #endif
199         if (strEQ(name, "F_CLIENT_HELLO"))
200 #ifdef SSL_F_CLIENT_HELLO
201             return SSL_F_CLIENT_HELLO;
202 #else
203             goto not_there;
204 #endif
205         if (strEQ(name, "F_CLIENT_MASTER_KEY"))
206 #ifdef SSL_F_CLIENT_MASTER_KEY
207             return SSL_F_CLIENT_MASTER_KEY;
208 #else
209             goto not_there;
210 #endif
211         if (strEQ(name, "F_D2I_SSL_SESSION"))
212 #ifdef SSL_F_D2I_SSL_SESSION
213             return SSL_F_D2I_SSL_SESSION;
214 #else
215             goto not_there;
216 #endif
217         if (strEQ(name, "F_GET_CLIENT_FINISHED"))
218 #ifdef SSL_F_GET_CLIENT_FINISHED
219             return SSL_F_GET_CLIENT_FINISHED;
220 #else
221             goto not_there;
222 #endif
223         if (strEQ(name, "F_GET_CLIENT_HELLO"))
224 #ifdef SSL_F_GET_CLIENT_HELLO
225             return SSL_F_GET_CLIENT_HELLO;
226 #else
227             goto not_there;
228 #endif
229         if (strEQ(name, "F_GET_CLIENT_MASTER_KEY"))
230 #ifdef SSL_F_GET_CLIENT_MASTER_KEY
231             return SSL_F_GET_CLIENT_MASTER_KEY;
232 #else
233             goto not_there;
234 #endif
235         if (strEQ(name, "F_GET_SERVER_FINISHED"))
236 #ifdef SSL_F_GET_SERVER_FINISHED
237             return SSL_F_GET_SERVER_FINISHED;
238 #else
239             goto not_there;
240 #endif
241         if (strEQ(name, "F_GET_SERVER_HELLO"))
242 #ifdef SSL_F_GET_SERVER_HELLO
243             return SSL_F_GET_SERVER_HELLO;
244 #else
245             goto not_there;
246 #endif
247         if (strEQ(name, "F_GET_SERVER_VERIFY"))
248 #ifdef SSL_F_GET_SERVER_VERIFY
249             return SSL_F_GET_SERVER_VERIFY;
250 #else
251             goto not_there;
252 #endif
253         if (strEQ(name, "F_I2D_SSL_SESSION"))
254 #ifdef SSL_F_I2D_SSL_SESSION
255             return SSL_F_I2D_SSL_SESSION;
256 #else
257             goto not_there;
258 #endif
259         if (strEQ(name, "F_READ_N"))
260 #ifdef SSL_F_READ_N
261             return SSL_F_READ_N;
262 #else
263             goto not_there;
264 #endif
265         if (strEQ(name, "F_REQUEST_CERTIFICATE"))
266 #ifdef SSL_F_REQUEST_CERTIFICATE
267             return SSL_F_REQUEST_CERTIFICATE;
268 #else
269             goto not_there;
270 #endif
271         if (strEQ(name, "F_SERVER_HELLO"))
272 #ifdef SSL_F_SERVER_HELLO
273             return SSL_F_SERVER_HELLO;
274 #else
275             goto not_there;
276 #endif
277         if (strEQ(name, "F_SSL_ACCEPT"))
278 #ifdef SSL_F_SSL_ACCEPT
279             return SSL_F_SSL_ACCEPT;
280 #else
281             goto not_there;
282 #endif
283         if (strEQ(name, "F_SSL_CERT_NEW"))
284 #ifdef SSL_F_SSL_CERT_NEW
285             return SSL_F_SSL_CERT_NEW;
286 #else
287             goto not_there;
288 #endif
289         if (strEQ(name, "F_SSL_CONNECT"))
290 #ifdef SSL_F_SSL_CONNECT
291             return SSL_F_SSL_CONNECT;
292 #else
293             goto not_there;
294 #endif
295         if (strEQ(name, "F_SSL_ENC_DES_CBC_INIT"))
296 #ifdef SSL_F_SSL_ENC_DES_CBC_INIT
297             return SSL_F_SSL_ENC_DES_CBC_INIT;
298 #else
299             goto not_there;
300 #endif
301         if (strEQ(name, "F_SSL_ENC_DES_CFB_INIT"))
302 #ifdef SSL_F_SSL_ENC_DES_CFB_INIT
303             return SSL_F_SSL_ENC_DES_CFB_INIT;
304 #else
305             goto not_there;
306 #endif
307         if (strEQ(name, "F_SSL_ENC_DES_EDE3_CBC_INIT"))
308 #ifdef SSL_F_SSL_ENC_DES_EDE3_CBC_INIT
309             return SSL_F_SSL_ENC_DES_EDE3_CBC_INIT;
310 #else
311             goto not_there;
312 #endif
313         if (strEQ(name, "F_SSL_ENC_IDEA_CBC_INIT"))
314 #ifdef SSL_F_SSL_ENC_IDEA_CBC_INIT
315             return SSL_F_SSL_ENC_IDEA_CBC_INIT;
316 #else
317             goto not_there;
318 #endif
319         if (strEQ(name, "F_SSL_ENC_NULL_INIT"))
320 #ifdef SSL_F_SSL_ENC_NULL_INIT
321             return SSL_F_SSL_ENC_NULL_INIT;
322 #else
323             goto not_there;
324 #endif
325         if (strEQ(name, "F_SSL_ENC_RC2_CBC_INIT"))
326 #ifdef SSL_F_SSL_ENC_RC2_CBC_INIT
327             return SSL_F_SSL_ENC_RC2_CBC_INIT;
328 #else
329             goto not_there;
330 #endif
331         if (strEQ(name, "F_SSL_ENC_RC4_INIT"))
332 #ifdef SSL_F_SSL_ENC_RC4_INIT
333             return SSL_F_SSL_ENC_RC4_INIT;
334 #else
335             goto not_there;
336 #endif
337         if (strEQ(name, "F_SSL_GET_NEW_SESSION"))
338 #ifdef SSL_F_SSL_GET_NEW_SESSION
339             return SSL_F_SSL_GET_NEW_SESSION;
340 #else
341             goto not_there;
342 #endif
343         if (strEQ(name, "F_SSL_MAKE_CIPHER_LIST"))
344 #ifdef SSL_F_SSL_MAKE_CIPHER_LIST
345             return SSL_F_SSL_MAKE_CIPHER_LIST;
346 #else
347             goto not_there;
348 #endif
349         if (strEQ(name, "F_SSL_NEW"))
350 #ifdef SSL_F_SSL_NEW
351             return SSL_F_SSL_NEW;
352 #else
353             goto not_there;
354 #endif
355         if (strEQ(name, "F_SSL_READ"))
356 #ifdef SSL_F_SSL_READ
357             return SSL_F_SSL_READ;
358 #else
359             goto not_there;
360 #endif
361         if (strEQ(name, "F_SSL_RSA_PRIVATE_DECRYPT"))
362 #ifdef SSL_F_SSL_RSA_PRIVATE_DECRYPT
363             return SSL_F_SSL_RSA_PRIVATE_DECRYPT;
364 #else
365             goto not_there;
366 #endif
367         if (strEQ(name, "F_SSL_RSA_PUBLIC_ENCRYPT"))
368 #ifdef SSL_F_SSL_RSA_PUBLIC_ENCRYPT
369             return SSL_F_SSL_RSA_PUBLIC_ENCRYPT;
370 #else
371             goto not_there;
372 #endif
373         if (strEQ(name, "F_SSL_SESSION_NEW"))
374 #ifdef SSL_F_SSL_SESSION_NEW
375             return SSL_F_SSL_SESSION_NEW;
376 #else
377             goto not_there;
378 #endif
379         if (strEQ(name, "F_SSL_SESSION_PRINT_FP"))
380 #ifdef SSL_F_SSL_SESSION_PRINT_FP
381             return SSL_F_SSL_SESSION_PRINT_FP;
382 #else
383             goto not_there;
384 #endif
385         if (strEQ(name, "F_SSL_SET_CERTIFICATE"))
386 #ifdef SSL_F_SSL_SET_CERTIFICATE
387             return SSL_F_SSL_SET_CERTIFICATE;
388 #else
389             goto not_there;
390 #endif
391         if (strEQ(name, "F_SSL_SET_FD"))
392 #ifdef SSL_F_SSL_SET_FD
393             return SSL_F_SSL_SET_FD;
394 #else
395             goto not_there;
396 #endif
397         if (strEQ(name, "F_SSL_SET_RFD"))
398 #ifdef SSL_F_SSL_SET_RFD
399             return SSL_F_SSL_SET_RFD;
400 #else
401             goto not_there;
402 #endif
403         if (strEQ(name, "F_SSL_SET_WFD"))
404 #ifdef SSL_F_SSL_SET_WFD
405             return SSL_F_SSL_SET_WFD;
406 #else
407             goto not_there;
408 #endif
409         if (strEQ(name, "F_SSL_STARTUP"))
410 #ifdef SSL_F_SSL_STARTUP
411             return SSL_F_SSL_STARTUP;
412 #else
413             goto not_there;
414 #endif
415         if (strEQ(name, "F_SSL_USE_CERTIFICATE"))
416 #ifdef SSL_F_SSL_USE_CERTIFICATE
417             return SSL_F_SSL_USE_CERTIFICATE;
418 #else
419             goto not_there;
420 #endif
421         if (strEQ(name, "F_SSL_USE_CERTIFICATE_ASN1"))
422 #ifdef SSL_F_SSL_USE_CERTIFICATE_ASN1
423             return SSL_F_SSL_USE_CERTIFICATE_ASN1;
424 #else
425             goto not_there;
426 #endif
427         if (strEQ(name, "F_SSL_USE_CERTIFICATE_FILE"))
428 #ifdef SSL_F_SSL_USE_CERTIFICATE_FILE
429             return SSL_F_SSL_USE_CERTIFICATE_FILE;
430 #else
431             goto not_there;
432 #endif
433         if (strEQ(name, "F_SSL_USE_PRIVATEKEY"))
434 #ifdef SSL_F_SSL_USE_PRIVATEKEY
435             return SSL_F_SSL_USE_PRIVATEKEY;
436 #else
437             goto not_there;
438 #endif
439         if (strEQ(name, "F_SSL_USE_PRIVATEKEY_ASN1"))
440 #ifdef SSL_F_SSL_USE_PRIVATEKEY_ASN1
441             return SSL_F_SSL_USE_PRIVATEKEY_ASN1;
442 #else
443             goto not_there;
444 #endif
445         if (strEQ(name, "F_SSL_USE_PRIVATEKEY_FILE"))
446 #ifdef SSL_F_SSL_USE_PRIVATEKEY_FILE
447             return SSL_F_SSL_USE_PRIVATEKEY_FILE;
448 #else
449             goto not_there;
450 #endif
451         if (strEQ(name, "F_SSL_USE_RSAPRIVATEKEY"))
452 #ifdef SSL_F_SSL_USE_RSAPRIVATEKEY
453             return SSL_F_SSL_USE_RSAPRIVATEKEY;
454 #else
455             goto not_there;
456 #endif
457         if (strEQ(name, "F_SSL_USE_RSAPRIVATEKEY_ASN1"))
458 #ifdef SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1
459             return SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1;
460 #else
461             goto not_there;
462 #endif
463         if (strEQ(name, "F_SSL_USE_RSAPRIVATEKEY_FILE"))
464 #ifdef SSL_F_SSL_USE_RSAPRIVATEKEY_FILE
465             return SSL_F_SSL_USE_RSAPRIVATEKEY_FILE;
466 #else
467             goto not_there;
468 #endif
469         if (strEQ(name, "F_WRITE_PENDING"))
470 #ifdef SSL_F_WRITE_PENDING
471             return SSL_F_WRITE_PENDING;
472 #else
473             goto not_there;
474 #endif
475         break;
476     case 'G':
477         if (strEQ(name, "GEN_OTHERNAME"))
478 #ifdef GEN_OTHERNAME
479             return GEN_OTHERNAME;
480 #else
481             goto not_there;
482 #endif
483         if (strEQ(name, "GEN_EMAIL"))
484 #ifdef GEN_EMAIL
485             return GEN_EMAIL;
486 #else
487             goto not_there;
488 #endif
489         if (strEQ(name, "GEN_DNS"))
490 #ifdef GEN_DNS
491             return GEN_DNS;
492 #else
493             goto not_there;
494 #endif
495         if (strEQ(name, "GEN_X400"))
496 #ifdef GEN_X400
497             return GEN_X400;
498 #else
499             goto not_there;
500 #endif
501         if (strEQ(name, "GEN_DIRNAME"))
502 #ifdef GEN_DIRNAME
503             return GEN_DIRNAME;
504 #else
505             goto not_there;
506 #endif
507         if (strEQ(name, "GEN_EDIPARTY"))
508 #ifdef GEN_EDIPARTY
509             return GEN_EDIPARTY;
510 #else
511             goto not_there;
512 #endif
513         if (strEQ(name, "GEN_URI"))
514 #ifdef GEN_URI
515             return GEN_URI;
516 #else
517             goto not_there;
518 #endif
519         if (strEQ(name, "GEN_IPADD"))
520 #ifdef GEN_IPADD
521             return GEN_IPADD;
522 #else
523             goto not_there;
524 #endif
525         if (strEQ(name, "GEN_RID"))
526 #ifdef GEN_RID
527             return GEN_RID;
528 #else
529             goto not_there;
530 #endif
531         break;
532     case 'H':
533         break;
534     case 'I':
535         break;
536     case 'J':
537         break;
538     case 'K':
539         break;
540     case 'L':
541         break;
542     case 'M':
543         if (strEQ(name, "MAX_MASTER_KEY_LENGTH_IN_BITS"))
544 #ifdef SSL_MAX_MASTER_KEY_LENGTH_IN_BITS
545             return SSL_MAX_MASTER_KEY_LENGTH_IN_BITS;
546 #else
547             goto not_there;
548 #endif
549         if (strEQ(name, "MAX_RECORD_LENGTH_2_BYTE_HEADER"))
550 #ifdef SSL_MAX_RECORD_LENGTH_2_BYTE_HEADER
551             return SSL_MAX_RECORD_LENGTH_2_BYTE_HEADER;
552 #else
553             goto not_there;
554 #endif
555         if (strEQ(name, "MAX_RECORD_LENGTH_3_BYTE_HEADER"))
556 #ifdef SSL_MAX_RECORD_LENGTH_3_BYTE_HEADER
557             return SSL_MAX_RECORD_LENGTH_3_BYTE_HEADER;
558 #else
559             goto not_there;
560 #endif
561         if (strEQ(name, "MAX_SSL_SESSION_ID_LENGTH_IN_BYTES"))
562 #ifdef SSL_MAX_SSL_SESSION_ID_LENGTH_IN_BYTES
563             return SSL_MAX_SSL_SESSION_ID_LENGTH_IN_BYTES;
564 #else
565             goto not_there;
566 #endif
567         if (strEQ(name, "MIN_RSA_MODULUS_LENGTH_IN_BYTES"))
568 #ifdef SSL_MIN_RSA_MODULUS_LENGTH_IN_BYTES
569             return SSL_MIN_RSA_MODULUS_LENGTH_IN_BYTES;
570 #else
571             goto not_there;
572 #endif
573         if (strEQ(name, "MT_CLIENT_CERTIFICATE"))
574 #ifdef SSL_MT_CLIENT_CERTIFICATE
575             return SSL_MT_CLIENT_CERTIFICATE;
576 #else
577             goto not_there;
578 #endif
579         if (strEQ(name, "MT_CLIENT_FINISHED"))
580 #ifdef SSL_MT_CLIENT_FINISHED
581             return SSL_MT_CLIENT_FINISHED;
582 #else
583             goto not_there;
584 #endif
585         if (strEQ(name, "MT_CLIENT_HELLO"))
586 #ifdef SSL_MT_CLIENT_HELLO
587             return SSL_MT_CLIENT_HELLO;
588 #else
589             goto not_there;
590 #endif
591         if (strEQ(name, "MT_CLIENT_MASTER_KEY"))
592 #ifdef SSL_MT_CLIENT_MASTER_KEY
593             return SSL_MT_CLIENT_MASTER_KEY;
594 #else
595             goto not_there;
596 #endif
597         if (strEQ(name, "MT_ERROR"))
598 #ifdef SSL_MT_ERROR
599             return SSL_MT_ERROR;
600 #else
601             goto not_there;
602 #endif
603         if (strEQ(name, "MT_REQUEST_CERTIFICATE"))
604 #ifdef SSL_MT_REQUEST_CERTIFICATE
605             return SSL_MT_REQUEST_CERTIFICATE;
606 #else
607             goto not_there;
608 #endif
609         if (strEQ(name, "MT_SERVER_FINISHED"))
610 #ifdef SSL_MT_SERVER_FINISHED
611             return SSL_MT_SERVER_FINISHED;
612 #else
613             goto not_there;
614 #endif
615         if (strEQ(name, "MT_SERVER_HELLO"))
616 #ifdef SSL_MT_SERVER_HELLO
617             return SSL_MT_SERVER_HELLO;
618 #else
619             goto not_there;
620 #endif
621         if (strEQ(name, "MT_SERVER_VERIFY"))
622 #ifdef SSL_MT_SERVER_VERIFY
623             return SSL_MT_SERVER_VERIFY;
624 #else
625             goto not_there;
626 #endif
627         break;
628     case 'N':
629         if (strEQ(name, "NOTHING"))
630 #ifdef SSL_NOTHING
631             return SSL_NOTHING;
632 #else
633             goto not_there;
634 #endif
635         if (strEQ(name, "NID_undef"))
636 #ifdef NID_undef
637             return NID_undef;
638 #else
639             goto not_there;
640 #endif
641         if (strEQ(name, "NID_algorithm"))
642 #ifdef NID_algorithm
643             return NID_algorithm;
644 #else
645             goto not_there;
646 #endif
647         if (strEQ(name, "NID_rsadsi"))
648 #ifdef NID_rsadsi
649             return NID_rsadsi;
650 #else
651             goto not_there;
652 #endif
653         if (strEQ(name, "NID_pkcs"))
654 #ifdef NID_pkcs
655             return NID_pkcs;
656 #else
657             goto not_there;
658 #endif
659         if (strEQ(name, "NID_md2"))
660 #ifdef NID_md2
661             return NID_md2;
662 #else
663             goto not_there;
664 #endif
665         if (strEQ(name, "NID_md5"))
666 #ifdef NID_md5
667             return NID_md5;
668 #else
669             goto not_there;
670 #endif
671         if (strEQ(name, "NID_rc4"))
672 #ifdef NID_rc4
673             return NID_rc4;
674 #else
675             goto not_there;
676 #endif
677         if (strEQ(name, "NID_rsaEncryption"))
678 #ifdef NID_rsaEncryption
679             return NID_rsaEncryption;
680 #else
681             goto not_there;
682 #endif
683         if (strEQ(name, "NID_md2WithRSAEncryption"))
684 #ifdef NID_md2WithRSAEncryption
685             return NID_md2WithRSAEncryption;
686 #else
687             goto not_there;
688 #endif
689         if (strEQ(name, "NID_md5WithRSAEncryption"))
690 #ifdef NID_md5WithRSAEncryption
691             return NID_md5WithRSAEncryption;
692 #else
693             goto not_there;
694 #endif
695         if (strEQ(name, "NID_pbeWithMD2AndDES_CBC"))
696 #ifdef NID_pbeWithMD2AndDES_CBC
697             return NID_pbeWithMD2AndDES_CBC;
698 #else
699             goto not_there;
700 #endif
701         if (strEQ(name, "NID_pbeWithMD5AndDES_CBC"))
702 #ifdef NID_pbeWithMD5AndDES_CBC
703             return NID_pbeWithMD5AndDES_CBC;
704 #else
705             goto not_there;
706 #endif
707         if (strEQ(name, "NID_X500"))
708 #ifdef NID_X500
709             return NID_X500;
710 #else
711             goto not_there;
712 #endif
713         if (strEQ(name, "NID_X509"))
714 #ifdef NID_X509
715             return NID_X509;
716 #else
717             goto not_there;
718 #endif
719         if (strEQ(name, "NID_commonName"))
720 #ifdef NID_commonName
721             return NID_commonName;
722 #else
723             goto not_there;
724 #endif
725         if (strEQ(name, "NID_countryName"))
726 #ifdef NID_countryName
727             return NID_countryName;
728 #else
729             goto not_there;
730 #endif
731         if (strEQ(name, "NID_localityName"))
732 #ifdef NID_localityName
733             return NID_localityName;
734 #else
735             goto not_there;
736 #endif
737         if (strEQ(name, "NID_stateOrProvinceName"))
738 #ifdef NID_stateOrProvinceName
739             return NID_stateOrProvinceName;
740 #else
741             goto not_there;
742 #endif
743         if (strEQ(name, "NID_organizationName"))
744 #ifdef NID_organizationName
745             return NID_organizationName;
746 #else
747             goto not_there;
748 #endif
749         if (strEQ(name, "NID_organizationalUnitName"))
750 #ifdef NID_organizationalUnitName
751             return NID_organizationalUnitName;
752 #else
753             goto not_there;
754 #endif
755         if (strEQ(name, "NID_rsa"))
756 #ifdef NID_rsa
757             return NID_rsa;
758 #else
759             goto not_there;
760 #endif
761         if (strEQ(name, "NID_pkcs7"))
762 #ifdef NID_pkcs7
763             return NID_pkcs7;
764 #else
765             goto not_there;
766 #endif
767         if (strEQ(name, "NID_pkcs7_data"))
768 #ifdef NID_pkcs7_data
769             return NID_pkcs7_data;
770 #else
771             goto not_there;
772 #endif
773         if (strEQ(name, "NID_pkcs7_signed"))
774 #ifdef NID_pkcs7_signed
775             return NID_pkcs7_signed;
776 #else
777             goto not_there;
778 #endif
779         if (strEQ(name, "NID_pkcs7_enveloped"))
780 #ifdef NID_pkcs7_enveloped
781             return NID_pkcs7_enveloped;
782 #else
783             goto not_there;
784 #endif
785         if (strEQ(name, "NID_pkcs7_signedAndEnveloped"))
786 #ifdef NID_pkcs7_signedAndEnveloped
787             return NID_pkcs7_signedAndEnveloped;
788 #else
789             goto not_there;
790 #endif
791         if (strEQ(name, "NID_pkcs7_digest"))
792 #ifdef NID_pkcs7_digest
793             return NID_pkcs7_digest;
794 #else
795             goto not_there;
796 #endif
797         if (strEQ(name, "NID_pkcs7_encrypted"))
798 #ifdef NID_pkcs7_encrypted
799             return NID_pkcs7_encrypted;
800 #else
801             goto not_there;
802 #endif
803         if (strEQ(name, "NID_pkcs3"))
804 #ifdef NID_pkcs3
805             return NID_pkcs3;
806 #else
807             goto not_there;
808 #endif
809         if (strEQ(name, "NID_dhKeyAgreement"))
810 #ifdef NID_dhKeyAgreement
811             return NID_dhKeyAgreement;
812 #else
813             goto not_there;
814 #endif
815         if (strEQ(name, "NID_des_ecb"))
816 #ifdef NID_des_ecb
817             return NID_des_ecb;
818 #else
819             goto not_there;
820 #endif
821         if (strEQ(name, "NID_des_cfb64"))
822 #ifdef NID_des_cfb64
823             return NID_des_cfb64;
824 #else
825             goto not_there;
826 #endif
827         if (strEQ(name, "NID_des_cbc"))
828 #ifdef NID_des_cbc
829             return NID_des_cbc;
830 #else
831             goto not_there;
832 #endif
833         if (strEQ(name, "NID_des_ede"))
834 #ifdef NID_des_ede
835             return NID_des_ede;
836 #else
837             goto not_there;
838 #endif
839         if (strEQ(name, "NID_des_ede3"))
840 #ifdef NID_des_ede3
841             return NID_des_ede3;
842 #else
843             goto not_there;
844 #endif
845         if (strEQ(name, "NID_idea_cbc"))
846 #ifdef NID_idea_cbc
847             return NID_idea_cbc;
848 #else
849             goto not_there;
850 #endif
851         if (strEQ(name, "NID_idea_cfb64"))
852 #ifdef NID_idea_cfb64
853             return NID_idea_cfb64;
854 #else
855             goto not_there;
856 #endif
857         if (strEQ(name, "NID_idea_ecb"))
858 #ifdef NID_idea_ecb
859             return NID_idea_ecb;
860 #else
861             goto not_there;
862 #endif
863         if (strEQ(name, "NID_rc2_cbc"))
864 #ifdef NID_rc2_cbc
865             return NID_rc2_cbc;
866 #else
867             goto not_there;
868 #endif
869         if (strEQ(name, "NID_rc2_ecb"))
870 #ifdef NID_rc2_ecb
871             return NID_rc2_ecb;
872 #else
873             goto not_there;
874 #endif
875         if (strEQ(name, "NID_rc2_cfb64"))
876 #ifdef NID_rc2_cfb64
877             return NID_rc2_cfb64;
878 #else
879             goto not_there;
880 #endif
881         if (strEQ(name, "NID_rc2_ofb64"))
882 #ifdef NID_rc2_ofb64
883             return NID_rc2_ofb64;
884 #else
885             goto not_there;
886 #endif
887         if (strEQ(name, "NID_sha"))
888 #ifdef NID_sha
889             return NID_sha;
890 #else
891             goto not_there;
892 #endif
893         if (strEQ(name, "NID_shaWithRSAEncryption"))
894 #ifdef NID_shaWithRSAEncryption
895             return NID_shaWithRSAEncryption;
896 #else
897             goto not_there;
898 #endif
899         if (strEQ(name, "NID_des_ede_cbc"))
900 #ifdef NID_des_ede_cbc
901             return NID_des_ede_cbc;
902 #else
903             goto not_there;
904 #endif
905         if (strEQ(name, "NID_des_ede3_cbc"))
906 #ifdef NID_des_ede3_cbc
907             return NID_des_ede3_cbc;
908 #else
909             goto not_there;
910 #endif
911         if (strEQ(name, "NID_des_ofb64"))
912 #ifdef NID_des_ofb64
913             return NID_des_ofb64;
914 #else
915             goto not_there;
916 #endif
917         if (strEQ(name, "NID_idea_ofb64"))
918 #ifdef NID_idea_ofb64
919             return NID_idea_ofb64;
920 #else
921             goto not_there;
922 #endif
923         if (strEQ(name, "NID_pkcs9"))
924 #ifdef NID_pkcs9
925             return NID_pkcs9;
926 #else
927             goto not_there;
928 #endif
929         if (strEQ(name, "NID_pkcs9_emailAddress"))
930 #ifdef NID_pkcs9_emailAddress
931             return NID_pkcs9_emailAddress;
932 #else
933             goto not_there;
934 #endif
935         if (strEQ(name, "NID_pkcs9_unstructuredName"))
936 #ifdef NID_pkcs9_unstructuredName
937             return NID_pkcs9_unstructuredName;
938 #else
939             goto not_there;
940 #endif
941         if (strEQ(name, "NID_pkcs9_contentType"))
942 #ifdef NID_pkcs9_contentType
943             return NID_pkcs9_contentType;
944 #else
945             goto not_there;
946 #endif
947         if (strEQ(name, "NID_pkcs9_messageDigest"))
948 #ifdef NID_pkcs9_messageDigest
949             return NID_pkcs9_messageDigest;
950 #else
951             goto not_there;
952 #endif
953         if (strEQ(name, "NID_pkcs9_signingTime"))
954 #ifdef NID_pkcs9_signingTime
955             return NID_pkcs9_signingTime;
956 #else
957             goto not_there;
958 #endif
959         if (strEQ(name, "NID_pkcs9_countersignature"))
960 #ifdef NID_pkcs9_countersignature
961             return NID_pkcs9_countersignature;
962 #else
963             goto not_there;
964 #endif
965         if (strEQ(name, "NID_pkcs9_challengePassword"))
966 #ifdef NID_pkcs9_challengePassword
967             return NID_pkcs9_challengePassword;
968 #else
969             goto not_there;
970 #endif
971         if (strEQ(name, "NID_pkcs9_unstructuredAddress"))
972 #ifdef NID_pkcs9_unstructuredAddress
973             return NID_pkcs9_unstructuredAddress;
974 #else
975             goto not_there;
976 #endif
977         if (strEQ(name, "NID_pkcs9_extCertAttributes"))
978 #ifdef NID_pkcs9_extCertAttributes
979             return NID_pkcs9_extCertAttributes;
980 #else
981             goto not_there;
982 #endif
983         if (strEQ(name, "NID_netscape"))
984 #ifdef NID_netscape
985             return NID_netscape;
986 #else
987             goto not_there;
988 #endif
989         if (strEQ(name, "NID_netscape_cert_extension"))
990 #ifdef NID_netscape_cert_extension
991             return NID_netscape_cert_extension;
992 #else
993             goto not_there;
994 #endif
995         if (strEQ(name, "NID_netscape_data_type"))
996 #ifdef NID_netscape_data_type
997             return NID_netscape_data_type;
998 #else
999             goto not_there;
1000 #endif
1001         if (strEQ(name, "NID_des_ede_cfb64"))
1002 #ifdef NID_des_ede_cfb64
1003             return NID_des_ede_cfb64;
1004 #else
1005             goto not_there;
1006 #endif
1007         if (strEQ(name, "NID_des_ede3_cfb64"))
1008 #ifdef NID_des_ede3_cfb64
1009             return NID_des_ede3_cfb64;
1010 #else
1011             goto not_there;
1012 #endif
1013         if (strEQ(name, "NID_des_ede_ofb64"))
1014 #ifdef NID_des_ede_ofb64
1015             return NID_des_ede_ofb64;
1016 #else
1017             goto not_there;
1018 #endif
1019         if (strEQ(name, "NID_des_ede3_ofb64"))
1020 #ifdef NID_des_ede3_ofb64
1021             return NID_des_ede3_ofb64;
1022 #else
1023             goto not_there;
1024 #endif
1025         if (strEQ(name, "NID_sha1"))
1026 #ifdef NID_sha1
1027             return NID_sha1;
1028 #else
1029             goto not_there;
1030 #endif
1031         if (strEQ(name, "NID_sha1WithRSAEncryption"))
1032 #ifdef NID_sha1WithRSAEncryption
1033             return NID_sha1WithRSAEncryption;
1034 #else
1035             goto not_there;
1036 #endif
1037         if (strEQ(name, "NID_dsaWithSHA"))
1038 #ifdef NID_dsaWithSHA
1039             return NID_dsaWithSHA;
1040 #else
1041             goto not_there;
1042 #endif
1043         if (strEQ(name, "NID_dsa_2"))
1044 #ifdef NID_dsa_2
1045             return NID_dsa_2;
1046 #else
1047             goto not_there;
1048 #endif
1049         if (strEQ(name, "NID_pbeWithSHA1AndRC2_CBC"))
1050 #ifdef NID_pbeWithSHA1AndRC2_CBC
1051             return NID_pbeWithSHA1AndRC2_CBC;
1052 #else
1053             goto not_there;
1054 #endif
1055         if (strEQ(name, "NID_id_pbkdf2"))
1056 #ifdef NID_id_pbkdf2
1057             return NID_id_pbkdf2;
1058 #else
1059             goto not_there;
1060 #endif
1061         if (strEQ(name, "NID_dsaWithSHA1_2"))
1062 #ifdef NID_dsaWithSHA1_2
1063             return NID_dsaWithSHA1_2;
1064 #else
1065             goto not_there;
1066 #endif
1067         if (strEQ(name, "NID_netscape_cert_type"))
1068 #ifdef NID_netscape_cert_type
1069             return NID_netscape_cert_type;
1070 #else
1071             goto not_there;
1072 #endif
1073         if (strEQ(name, "NID_netscape_base_url"))
1074 #ifdef NID_netscape_base_url
1075             return NID_netscape_base_url;
1076 #else
1077             goto not_there;
1078 #endif
1079         if (strEQ(name, "NID_netscape_revocation_url"))
1080 #ifdef NID_netscape_revocation_url
1081             return NID_netscape_revocation_url;
1082 #else
1083             goto not_there;
1084 #endif
1085         if (strEQ(name, "NID_netscape_ca_revocation_url"))
1086 #ifdef NID_netscape_ca_revocation_url
1087             return NID_netscape_ca_revocation_url;
1088 #else
1089             goto not_there;
1090 #endif
1091         if (strEQ(name, "NID_netscape_renewal_url"))
1092 #ifdef NID_netscape_renewal_url
1093             return NID_netscape_renewal_url;
1094 #else
1095             goto not_there;
1096 #endif
1097         if (strEQ(name, "NID_netscape_ca_policy_url"))
1098 #ifdef NID_netscape_ca_policy_url
1099             return NID_netscape_ca_policy_url;
1100 #else
1101             goto not_there;
1102 #endif
1103         if (strEQ(name, "NID_netscape_ssl_server_name"))
1104 #ifdef NID_netscape_ssl_server_name
1105             return NID_netscape_ssl_server_name;
1106 #else
1107             goto not_there;
1108 #endif
1109         if (strEQ(name, "NID_netscape_comment"))
1110 #ifdef NID_netscape_comment
1111             return NID_netscape_comment;
1112 #else
1113             goto not_there;
1114 #endif
1115         if (strEQ(name, "NID_netscape_cert_sequence"))
1116 #ifdef NID_netscape_cert_sequence
1117             return NID_netscape_cert_sequence;
1118 #else
1119             goto not_there;
1120 #endif
1121         if (strEQ(name, "NID_desx_cbc"))
1122 #ifdef NID_desx_cbc
1123             return NID_desx_cbc;
1124 #else
1125             goto not_there;
1126 #endif
1127         if (strEQ(name, "NID_id_ce"))
1128 #ifdef NID_id_ce
1129             return NID_id_ce;
1130 #else
1131             goto not_there;
1132 #endif
1133         if (strEQ(name, "NID_subject_key_identifier"))
1134 #ifdef NID_subject_key_identifier
1135             return NID_subject_key_identifier;
1136 #else
1137             goto not_there;
1138 #endif
1139         if (strEQ(name, "NID_key_usage"))
1140 #ifdef NID_key_usage
1141             return NID_key_usage;
1142 #else
1143             goto not_there;
1144 #endif
1145         if (strEQ(name, "NID_private_key_usage_period"))
1146 #ifdef NID_private_key_usage_period
1147             return NID_private_key_usage_period;
1148 #else
1149             goto not_there;
1150 #endif
1151         if (strEQ(name, "NID_subject_alt_name"))
1152 #ifdef NID_subject_alt_name
1153             return NID_subject_alt_name;
1154 #else
1155             goto not_there;
1156 #endif
1157         if (strEQ(name, "NID_issuer_alt_name"))
1158 #ifdef NID_issuer_alt_name
1159             return NID_issuer_alt_name;
1160 #else
1161             goto not_there;
1162 #endif
1163         if (strEQ(name, "NID_basic_constraints"))
1164 #ifdef NID_basic_constraints
1165             return NID_basic_constraints;
1166 #else
1167             goto not_there;
1168 #endif
1169         if (strEQ(name, "NID_crl_number"))
1170 #ifdef NID_crl_number
1171             return NID_crl_number;
1172 #else
1173             goto not_there;
1174 #endif
1175         if (strEQ(name, "NID_certificate_policies"))
1176 #ifdef NID_certificate_policies
1177             return NID_certificate_policies;
1178 #else
1179             goto not_there;
1180 #endif
1181         if (strEQ(name, "NID_authority_key_identifier"))
1182 #ifdef NID_authority_key_identifier
1183             return NID_authority_key_identifier;
1184 #else
1185             goto not_there;
1186 #endif
1187         if (strEQ(name, "NID_bf_cbc"))
1188 #ifdef NID_bf_cbc
1189             return NID_bf_cbc;
1190 #else
1191             goto not_there;
1192 #endif
1193         if (strEQ(name, "NID_bf_ecb"))
1194 #ifdef NID_bf_ecb
1195             return NID_bf_ecb;
1196 #else
1197             goto not_there;
1198 #endif
1199         if (strEQ(name, "NID_bf_cfb64"))
1200 #ifdef NID_bf_cfb64
1201             return NID_bf_cfb64;
1202 #else
1203             goto not_there;
1204 #endif
1205         if (strEQ(name, "NID_bf_ofb64"))
1206 #ifdef NID_bf_ofb64
1207             return NID_bf_ofb64;
1208 #else
1209             goto not_there;
1210 #endif
1211         if (strEQ(name, "NID_mdc2"))
1212 #ifdef NID_mdc2
1213             return NID_mdc2;
1214 #else
1215             goto not_there;
1216 #endif
1217         if (strEQ(name, "NID_mdc2WithRSA"))
1218 #ifdef NID_mdc2WithRSA
1219             return NID_mdc2WithRSA;
1220 #else
1221             goto not_there;
1222 #endif
1223         if (strEQ(name, "NID_rc4_40"))
1224 #ifdef NID_rc4_40
1225             return NID_rc4_40;
1226 #else
1227             goto not_there;
1228 #endif
1229         if (strEQ(name, "NID_rc2_40_cbc"))
1230 #ifdef NID_rc2_40_cbc
1231             return NID_rc2_40_cbc;
1232 #else
1233             goto not_there;
1234 #endif
1235         if (strEQ(name, "NID_givenName"))
1236 #ifdef NID_givenName
1237             return NID_givenName;
1238 #else
1239             goto not_there;
1240 #endif
1241         if (strEQ(name, "NID_surname"))
1242 #ifdef NID_surname
1243             return NID_surname;
1244 #else
1245             goto not_there;
1246 #endif
1247         if (strEQ(name, "NID_initials"))
1248 #ifdef NID_initials
1249             return NID_initials;
1250 #else
1251             goto not_there;
1252 #endif
1253         if (strEQ(name, "NID_uniqueIdentifier"))
1254 #ifdef NID_uniqueIdentifier
1255             return NID_uniqueIdentifier;
1256 #else
1257             goto not_there;
1258 #endif
1259         if (strEQ(name, "NID_crl_distribution_points"))
1260 #ifdef NID_crl_distribution_points
1261             return NID_crl_distribution_points;
1262 #else
1263             goto not_there;
1264 #endif
1265         if (strEQ(name, "NID_md5WithRSA"))
1266 #ifdef NID_md5WithRSA
1267             return NID_md5WithRSA;
1268 #else
1269             goto not_there;
1270 #endif
1271         if (strEQ(name, "NID_serialNumber"))
1272 #ifdef NID_serialNumber
1273             return NID_serialNumber;
1274 #else
1275             goto not_there;
1276 #endif
1277         if (strEQ(name, "NID_title"))
1278 #ifdef NID_title
1279             return NID_title;
1280 #else
1281             goto not_there;
1282 #endif
1283         if (strEQ(name, "NID_description"))
1284 #ifdef NID_description
1285             return NID_description;
1286 #else
1287             goto not_there;
1288 #endif
1289         if (strEQ(name, "NID_cast5_cbc"))
1290 #ifdef NID_cast5_cbc
1291             return NID_cast5_cbc;
1292 #else
1293             goto not_there;
1294 #endif
1295         if (strEQ(name, "NID_cast5_ecb"))
1296 #ifdef NID_cast5_ecb
1297             return NID_cast5_ecb;
1298 #else
1299             goto not_there;
1300 #endif
1301         if (strEQ(name, "NID_cast5_cfb64"))
1302 #ifdef NID_cast5_cfb64
1303             return NID_cast5_cfb64;
1304 #else
1305             goto not_there;
1306 #endif
1307         if (strEQ(name, "NID_cast5_ofb64"))
1308 #ifdef NID_cast5_ofb64
1309             return NID_cast5_ofb64;
1310 #else
1311             goto not_there;
1312 #endif
1313         if (strEQ(name, "NID_pbeWithMD5AndCast5_CBC"))
1314 #ifdef NID_pbeWithMD5AndCast5_CBC
1315             return NID_pbeWithMD5AndCast5_CBC;
1316 #else
1317             goto not_there;
1318 #endif
1319         if (strEQ(name, "NID_dsaWithSHA1"))
1320 #ifdef NID_dsaWithSHA1
1321             return NID_dsaWithSHA1;
1322 #else
1323             goto not_there;
1324 #endif
1325         if (strEQ(name, "NID_md5_sha1"))
1326 #ifdef NID_md5_sha1
1327             return NID_md5_sha1;
1328 #else
1329             goto not_there;
1330 #endif
1331         if (strEQ(name, "NID_sha1WithRSA"))
1332 #ifdef NID_sha1WithRSA
1333             return NID_sha1WithRSA;
1334 #else
1335             goto not_there;
1336 #endif
1337         if (strEQ(name, "NID_dsa"))
1338 #ifdef NID_dsa
1339             return NID_dsa;
1340 #else
1341             goto not_there;
1342 #endif
1343         if (strEQ(name, "NID_ripemd160"))
1344 #ifdef NID_ripemd160
1345             return NID_ripemd160;
1346 #else
1347             goto not_there;
1348 #endif
1349         if (strEQ(name, "NID_ripemd160WithRSA"))
1350 #ifdef NID_ripemd160WithRSA
1351             return NID_ripemd160WithRSA;
1352 #else
1353             goto not_there;
1354 #endif
1355         if (strEQ(name, "NID_rc5_cbc"))
1356 #ifdef NID_rc5_cbc
1357             return NID_rc5_cbc;
1358 #else
1359             goto not_there;
1360 #endif
1361         if (strEQ(name, "NID_rc5_ecb"))
1362 #ifdef NID_rc5_ecb
1363             return NID_rc5_ecb;
1364 #else
1365             goto not_there;
1366 #endif
1367         if (strEQ(name, "NID_rc5_cfb64"))
1368 #ifdef NID_rc5_cfb64
1369             return NID_rc5_cfb64;
1370 #else
1371             goto not_there;
1372 #endif
1373         if (strEQ(name, "NID_rc5_ofb64"))
1374 #ifdef NID_rc5_ofb64
1375             return NID_rc5_ofb64;
1376 #else
1377             goto not_there;
1378 #endif
1379         if (strEQ(name, "NID_rle_compression"))
1380 #ifdef NID_rle_compression
1381             return NID_rle_compression;
1382 #else
1383             goto not_there;
1384 #endif
1385         if (strEQ(name, "NID_zlib_compression"))
1386 #ifdef NID_zlib_compression
1387             return NID_zlib_compression;
1388 #else
1389             goto not_there;
1390 #endif
1391         if (strEQ(name, "NID_ext_key_usage"))
1392 #ifdef NID_ext_key_usage
1393             return NID_ext_key_usage;
1394 #else
1395             goto not_there;
1396 #endif
1397         if (strEQ(name, "NID_id_pkix"))
1398 #ifdef NID_id_pkix
1399             return NID_id_pkix;
1400 #else
1401             goto not_there;
1402 #endif
1403         if (strEQ(name, "NID_id_kp"))
1404 #ifdef NID_id_kp
1405             return NID_id_kp;
1406 #else
1407             goto not_there;
1408 #endif
1409         if (strEQ(name, "NID_server_auth"))
1410 #ifdef NID_server_auth
1411             return NID_server_auth;
1412 #else
1413             goto not_there;
1414 #endif
1415         if (strEQ(name, "NID_client_auth"))
1416 #ifdef NID_client_auth
1417             return NID_client_auth;
1418 #else
1419             goto not_there;
1420 #endif
1421         if (strEQ(name, "NID_code_sign"))
1422 #ifdef NID_code_sign
1423             return NID_code_sign;
1424 #else
1425             goto not_there;
1426 #endif
1427         if (strEQ(name, "NID_email_protect"))
1428 #ifdef NID_email_protect
1429             return NID_email_protect;
1430 #else
1431             goto not_there;
1432 #endif
1433         if (strEQ(name, "NID_time_stamp"))
1434 #ifdef NID_time_stamp
1435             return NID_time_stamp;
1436 #else
1437             goto not_there;
1438 #endif
1439         if (strEQ(name, "NID_ms_code_ind"))
1440 #ifdef NID_ms_code_ind
1441             return NID_ms_code_ind;
1442 #else
1443             goto not_there;
1444 #endif
1445         if (strEQ(name, "NID_ms_code_com"))
1446 #ifdef NID_ms_code_com
1447             return NID_ms_code_com;
1448 #else
1449             goto not_there;
1450 #endif
1451         if (strEQ(name, "NID_ms_ctl_sign"))
1452 #ifdef NID_ms_ctl_sign
1453             return NID_ms_ctl_sign;
1454 #else
1455             goto not_there;
1456 #endif
1457         if (strEQ(name, "NID_ms_sgc"))
1458 #ifdef NID_ms_sgc
1459             return NID_ms_sgc;
1460 #else
1461             goto not_there;
1462 #endif
1463         if (strEQ(name, "NID_ms_efs"))
1464 #ifdef NID_ms_efs
1465             return NID_ms_efs;
1466 #else
1467             goto not_there;
1468 #endif
1469         if (strEQ(name, "NID_ns_sgc"))
1470 #ifdef NID_ns_sgc
1471             return NID_ns_sgc;
1472 #else
1473             goto not_there;
1474 #endif
1475         if (strEQ(name, "NID_delta_crl"))
1476 #ifdef NID_delta_crl
1477             return NID_delta_crl;
1478 #else
1479             goto not_there;
1480 #endif
1481         if (strEQ(name, "NID_crl_reason"))
1482 #ifdef NID_crl_reason
1483             return NID_crl_reason;
1484 #else
1485             goto not_there;
1486 #endif
1487         if (strEQ(name, "NID_invalidity_date"))
1488 #ifdef NID_invalidity_date
1489             return NID_invalidity_date;
1490 #else
1491             goto not_there;
1492 #endif
1493         if (strEQ(name, "NID_sxnet"))
1494 #ifdef NID_sxnet
1495             return NID_sxnet;
1496 #else
1497             goto not_there;
1498 #endif
1499         if (strEQ(name, "NID_pbe_WithSHA1And128BitRC4"))
1500 #ifdef NID_pbe_WithSHA1And128BitRC4
1501             return NID_pbe_WithSHA1And128BitRC4;
1502 #else
1503             goto not_there;
1504 #endif
1505         if (strEQ(name, "NID_pbe_WithSHA1And40BitRC4"))
1506 #ifdef NID_pbe_WithSHA1And40BitRC4
1507             return NID_pbe_WithSHA1And40BitRC4;
1508 #else
1509             goto not_there;
1510 #endif
1511         if (strEQ(name, "NID_pbe_WithSHA1And3_Key_TripleDES_CBC"))
1512 #ifdef NID_pbe_WithSHA1And3_Key_TripleDES_CBC
1513             return NID_pbe_WithSHA1And3_Key_TripleDES_CBC;
1514 #else
1515             goto not_there;
1516 #endif
1517         if (strEQ(name, "NID_pbe_WithSHA1And2_Key_TripleDES_CBC"))
1518 #ifdef NID_pbe_WithSHA1And2_Key_TripleDES_CBC
1519             return NID_pbe_WithSHA1And2_Key_TripleDES_CBC;
1520 #else
1521             goto not_there;
1522 #endif
1523         if (strEQ(name, "NID_pbe_WithSHA1And128BitRC2_CBC"))
1524 #ifdef NID_pbe_WithSHA1And128BitRC2_CBC
1525             return NID_pbe_WithSHA1And128BitRC2_CBC;
1526 #else
1527             goto not_there;
1528 #endif
1529         if (strEQ(name, "NID_pbe_WithSHA1And40BitRC2_CBC"))
1530 #ifdef NID_pbe_WithSHA1And40BitRC2_CBC
1531             return NID_pbe_WithSHA1And40BitRC2_CBC;
1532 #else
1533             goto not_there;
1534 #endif
1535         if (strEQ(name, "NID_keyBag"))
1536 #ifdef NID_keyBag
1537             return NID_keyBag;
1538 #else
1539             goto not_there;
1540 #endif
1541         if (strEQ(name, "NID_pkcs8ShroudedKeyBag"))
1542 #ifdef NID_pkcs8ShroudedKeyBag
1543             return NID_pkcs8ShroudedKeyBag;
1544 #else
1545             goto not_there;
1546 #endif
1547         if (strEQ(name, "NID_certBag"))
1548 #ifdef NID_certBag
1549             return NID_certBag;
1550 #else
1551             goto not_there;
1552 #endif
1553         if (strEQ(name, "NID_crlBag"))
1554 #ifdef NID_crlBag
1555             return NID_crlBag;
1556 #else
1557             goto not_there;
1558 #endif
1559         if (strEQ(name, "NID_secretBag"))
1560 #ifdef NID_secretBag
1561             return NID_secretBag;
1562 #else
1563             goto not_there;
1564 #endif
1565         if (strEQ(name, "NID_safeContentsBag"))
1566 #ifdef NID_safeContentsBag
1567             return NID_safeContentsBag;
1568 #else
1569             goto not_there;
1570 #endif
1571         if (strEQ(name, "NID_friendlyName"))
1572 #ifdef NID_friendlyName
1573             return NID_friendlyName;
1574 #else
1575             goto not_there;
1576 #endif
1577         if (strEQ(name, "NID_localKeyID"))
1578 #ifdef NID_localKeyID
1579             return NID_localKeyID;
1580 #else
1581             goto not_there;
1582 #endif
1583         if (strEQ(name, "NID_x509Certificate"))
1584 #ifdef NID_x509Certificate
1585             return NID_x509Certificate;
1586 #else
1587             goto not_there;
1588 #endif
1589         if (strEQ(name, "NID_sdsiCertificate"))
1590 #ifdef NID_sdsiCertificate
1591             return NID_sdsiCertificate;
1592 #else
1593             goto not_there;
1594 #endif
1595         if (strEQ(name, "NID_x509Crl"))
1596 #ifdef NID_x509Crl
1597             return NID_x509Crl;
1598 #else
1599             goto not_there;
1600 #endif
1601         if (strEQ(name, "NID_pbes2"))
1602 #ifdef NID_pbes2
1603             return NID_pbes2;
1604 #else
1605             goto not_there;
1606 #endif
1607         if (strEQ(name, "NID_pbmac1"))
1608 #ifdef NID_pbmac1
1609             return NID_pbmac1;
1610 #else
1611             goto not_there;
1612 #endif
1613         if (strEQ(name, "NID_hmacWithSHA1"))
1614 #ifdef NID_hmacWithSHA1
1615             return NID_hmacWithSHA1;
1616 #else
1617             goto not_there;
1618 #endif
1619         if (strEQ(name, "NID_id_qt_cps"))
1620 #ifdef NID_id_qt_cps
1621             return NID_id_qt_cps;
1622 #else
1623             goto not_there;
1624 #endif
1625         if (strEQ(name, "NID_id_qt_unotice"))
1626 #ifdef NID_id_qt_unotice
1627             return NID_id_qt_unotice;
1628 #else
1629             goto not_there;
1630 #endif
1631         if (strEQ(name, "NID_rc2_64_cbc"))
1632 #ifdef NID_rc2_64_cbc
1633             return NID_rc2_64_cbc;
1634 #else
1635             goto not_there;
1636 #endif
1637         if (strEQ(name, "NID_SMIMECapabilities"))
1638 #ifdef NID_SMIMECapabilities
1639             return NID_SMIMECapabilities;
1640 #else
1641             goto not_there;
1642 #endif
1643         if (strEQ(name, "NID_pbeWithMD2AndRC2_CBC"))
1644 #ifdef NID_pbeWithMD2AndRC2_CBC
1645             return NID_pbeWithMD2AndRC2_CBC;
1646 #else
1647             goto not_there;
1648 #endif
1649         if (strEQ(name, "NID_pbeWithMD5AndRC2_CBC"))
1650 #ifdef NID_pbeWithMD5AndRC2_CBC
1651             return NID_pbeWithMD5AndRC2_CBC;
1652 #else
1653             goto not_there;
1654 #endif
1655         if (strEQ(name, "NID_pbeWithSHA1AndDES_CBC"))
1656 #ifdef NID_pbeWithSHA1AndDES_CBC
1657             return NID_pbeWithSHA1AndDES_CBC;
1658 #else
1659             goto not_there;
1660 #endif
1661         if (strEQ(name, "NID_ms_ext_req"))
1662 #ifdef NID_ms_ext_req
1663             return NID_ms_ext_req;
1664 #else
1665             goto not_there;
1666 #endif
1667         if (strEQ(name, "NID_ext_req"))
1668 #ifdef NID_ext_req
1669             return NID_ext_req;
1670 #else
1671             goto not_there;
1672 #endif
1673         if (strEQ(name, "NID_name"))
1674 #ifdef NID_name
1675             return NID_name;
1676 #else
1677             goto not_there;
1678 #endif
1679         if (strEQ(name, "NID_dnQualifier"))
1680 #ifdef NID_dnQualifier
1681             return NID_dnQualifier;
1682 #else
1683             goto not_there;
1684 #endif
1685         if (strEQ(name, "NID_id_pe"))
1686 #ifdef NID_id_pe
1687             return NID_id_pe;
1688 #else
1689             goto not_there;
1690 #endif
1691         if (strEQ(name, "NID_id_ad"))
1692 #ifdef NID_id_ad
1693             return NID_id_ad;
1694 #else
1695             goto not_there;
1696 #endif
1697         if (strEQ(name, "NID_info_access"))
1698 #ifdef NID_info_access
1699             return NID_info_access;
1700 #else
1701             goto not_there;
1702 #endif
1703         if (strEQ(name, "NID_ad_OCSP"))
1704 #ifdef NID_ad_OCSP
1705             return NID_ad_OCSP;
1706 #else
1707             goto not_there;
1708 #endif
1709         if (strEQ(name, "NID_ad_ca_issuers"))
1710 #ifdef NID_ad_ca_issuers
1711             return NID_ad_ca_issuers;
1712 #else
1713             goto not_there;
1714 #endif
1715         if (strEQ(name, "NID_OCSP_sign"))
1716 #ifdef NID_OCSP_sign
1717             return NID_OCSP_sign;
1718 #else
1719             goto not_there;
1720 #endif
1721         break;
1722     case 'O':
1723         if (strEQ(name, "OPENSSL_VERSION_NUMBER"))
1724 #ifdef OPENSSL_VERSION_NUMBER
1725             return OPENSSL_VERSION_NUMBER;
1726 #else
1727             goto not_there;
1728 #endif
1729         if (strEQ(name, "OP_MICROSOFT_SESS_ID_BUG"))
1730 #ifdef SSL_OP_MICROSOFT_SESS_ID_BUG
1731             return SSL_OP_MICROSOFT_SESS_ID_BUG;
1732 #else
1733             goto not_there;
1734 #endif
1735         if (strEQ(name, "OP_NETSCAPE_CHALLENGE_BUG"))
1736 #ifdef SSL_OP_NETSCAPE_CHALLENGE_BUG
1737             return SSL_OP_NETSCAPE_CHALLENGE_BUG;
1738 #else
1739             goto not_there;
1740 #endif
1741         if (strEQ(name, "OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG"))
1742 #ifdef SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG
1743             return SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG;
1744 #else
1745             goto not_there;
1746 #endif
1747         if (strEQ(name, "OP_SSLREF2_REUSE_CERT_TYPE_BUG"))
1748 #ifdef SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG
1749             return SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG;
1750 #else
1751             goto not_there;
1752 #endif
1753         if (strEQ(name, "OP_MICROSOFT_BIG_SSLV3_BUFFER"))
1754 #ifdef SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER
1755             return SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER;
1756 #else
1757             goto not_there;
1758 #endif
1759         if (strEQ(name, "OP_MSIE_SSLV2_RSA_PADDING"))
1760 #ifdef SSL_OP_MSIE_SSLV2_RSA_PADDING
1761             return SSL_OP_MSIE_SSLV2_RSA_PADDING;
1762 #else
1763             goto not_there;
1764 #endif
1765         if (strEQ(name, "OP_SSLEAY_080_CLIENT_DH_BUG"))
1766 #ifdef SSL_OP_SSLEAY_080_CLIENT_DH_BUG
1767             return SSL_OP_SSLEAY_080_CLIENT_DH_BUG;
1768 #else
1769             goto not_there;
1770 #endif
1771         if (strEQ(name, "OP_TLS_D5_BUG"))
1772 #ifdef SSL_OP_TLS_D5_BUG
1773             return SSL_OP_TLS_D5_BUG;
1774 #else
1775             goto not_there;
1776 #endif
1777         if (strEQ(name, "OP_SINGLE_DH_USE"))
1778 #ifdef SSL_OP_SINGLE_DH_USE
1779             return SSL_OP_SINGLE_DH_USE;
1780 #else
1781             goto not_there;
1782 #endif
1783         if (strEQ(name, "OP_EPHEMERAL_RSA"))
1784 #ifdef SSL_OP_EPHEMERAL_RSA
1785             return SSL_OP_EPHEMERAL_RSA;
1786 #else
1787             goto not_there;
1788 #endif
1789         if (strEQ(name, "OP_NETSCAPE_CA_DN_BUG"))
1790 #ifdef SSL_OP_NETSCAPE_CA_DN_BUG
1791             return SSL_OP_NETSCAPE_CA_DN_BUG;
1792 #else
1793             goto not_there;
1794 #endif
1795         if (strEQ(name, "OP_NON_EXPORT_FIRST"))
1796 #ifdef SSL_OP_NON_EXPORT_FIRST
1797             return SSL_OP_NON_EXPORT_FIRST;
1798 #else
1799             goto not_there;
1800 #endif
1801         if (strEQ(name, "OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG"))
1802 #ifdef SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG
1803             return SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG;
1804 #else
1805             goto not_there;
1806 #endif
1807         if (strEQ(name, "OP_NO_SSLv2"))
1808 #ifdef SSL_OP_NO_SSLv2
1809             return SSL_OP_NO_SSLv2;
1810 #else
1811             goto not_there;
1812 #endif
1813         if (strEQ(name, "OP_NO_SSLv3"))
1814 #ifdef SSL_OP_NO_SSLv3
1815             return SSL_OP_NO_SSLv3;
1816 #else
1817             goto not_there;
1818 #endif
1819         if (strEQ(name, "OP_NO_TICKET"))
1820 #ifdef SSL_OP_NO_TICKET
1821             return SSL_OP_NO_TICKET;
1822 #else
1823             goto not_there;
1824 #endif
1825         if (strEQ(name, "OP_NO_TLSv1"))
1826 #ifdef SSL_OP_NO_TLSv1
1827             return SSL_OP_NO_TLSv1;
1828 #else
1829             goto not_there;
1830 #endif
1831
1832
1833         if (strEQ(name, "OP_NO_QUERY_MTU"))
1834 #ifdef SSL_OP_NO_QUERY_MTU
1835             return SSL_OP_NO_QUERY_MTU;
1836 #else
1837             goto not_there;
1838 #endif
1839         if (strEQ(name, "OP_COOKIE_EXCHANGE"))
1840 #ifdef SSL_OP_COOKIE_EXCHANGE
1841             return SSL_OP_COOKIE_EXCHANGE;
1842 #else
1843             goto not_there;
1844 #endif
1845         if (strEQ(name, "OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION"))
1846 #ifdef SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION
1847             return SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION;
1848 #else
1849             goto not_there;
1850 #endif
1851         if (strEQ(name, "OP_NO_COMPRESSION"))
1852 #ifdef SSL_OP_NO_COMPRESSION
1853             return SSL_OP_NO_COMPRESSION;
1854 #else
1855             goto not_there;
1856 #endif
1857         if (strEQ(name, "OP_CIPHER_SERVER_PREFERENCE"))
1858 #ifdef SSL_OP_CIPHER_SERVER_PREFERENCE
1859             return SSL_OP_CIPHER_SERVER_PREFERENCE;
1860 #else
1861             goto not_there;
1862 #endif
1863         if (strEQ(name, "OP_TLS_ROLLBACK_BUG"))
1864 #ifdef SSL_OP_TLS_ROLLBACK_BUG
1865             return SSL_OP_TLS_ROLLBACK_BUG;
1866 #else
1867             goto not_there;
1868 #endif
1869         if (strEQ(name, "OP_PKCS1_CHECK_1"))
1870 #ifdef SSL_OP_PKCS1_CHECK_1
1871             return SSL_OP_PKCS1_CHECK_1;
1872 #else
1873             goto not_there;
1874 #endif
1875         if (strEQ(name, "OP_PKCS1_CHECK_2"))
1876 #ifdef SSL_OP_PKCS1_CHECK_2
1877             return SSL_OP_PKCS1_CHECK_2;
1878 #else
1879             goto not_there;
1880 #endif
1881         if (strEQ(name, "OP_NETSCAPE_CA_DN_BUG"))
1882 #ifdef SSL_OP_NETSCAPE_CA_DN_BUG
1883             return SSL_OP_NETSCAPE_CA_DN_BUG;
1884 #else
1885             goto not_there;
1886 #endif
1887         if (strEQ(name, "OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG"))
1888 #ifdef SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG
1889             return SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG;
1890 #else
1891             goto not_there;
1892 #endif
1893         if (strEQ(name, "OP_DONT_INSERT_EMPTY_FRAGMENTS"))
1894 #ifdef SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
1895             return SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS;
1896 #else
1897             goto not_there;
1898 #endif
1899         if (strEQ(name, "OP_ALL"))
1900 #ifdef SSL_OP_ALL
1901             return SSL_OP_ALL;
1902 #else
1903             goto not_there;
1904 #endif
1905
1906     case 'P':
1907         if (strEQ(name, "PE_BAD_CERTIFICATE"))
1908 #ifdef SSL_PE_BAD_CERTIFICATE
1909             return SSL_PE_BAD_CERTIFICATE;
1910 #else
1911             goto not_there;
1912 #endif
1913         if (strEQ(name, "PE_NO_CERTIFICATE"))
1914 #ifdef SSL_PE_NO_CERTIFICATE
1915             return SSL_PE_NO_CERTIFICATE;
1916 #else
1917             goto not_there;
1918 #endif
1919         if (strEQ(name, "PE_NO_CIPHER"))
1920 #ifdef SSL_PE_NO_CIPHER
1921             return SSL_PE_NO_CIPHER;
1922 #else
1923             goto not_there;
1924 #endif
1925         if (strEQ(name, "PE_UNSUPPORTED_CERTIFICATE_TYPE"))
1926 #ifdef SSL_PE_UNSUPPORTED_CERTIFICATE_TYPE
1927             return SSL_PE_UNSUPPORTED_CERTIFICATE_TYPE;
1928 #else
1929             goto not_there;
1930 #endif
1931         break;
1932     case 'Q':
1933         break;
1934     case 'R':
1935         if (strEQ(name, "READING"))
1936 #ifdef SSL_READING
1937             return SSL_READING;
1938 #else
1939             goto not_there;
1940 #endif
1941         if (strEQ(name, "RWERR_BAD_MAC_DECODE"))
1942 #ifdef SSL_RWERR_BAD_MAC_DECODE
1943             return SSL_RWERR_BAD_MAC_DECODE;
1944 #else
1945             goto not_there;
1946 #endif
1947         if (strEQ(name, "RWERR_BAD_WRITE_RETRY"))
1948 #ifdef SSL_RWERR_BAD_WRITE_RETRY
1949             return SSL_RWERR_BAD_WRITE_RETRY;
1950 #else
1951             goto not_there;
1952 #endif
1953         if (strEQ(name, "RWERR_INTERNAL_ERROR"))
1954 #ifdef SSL_RWERR_INTERNAL_ERROR
1955             return SSL_RWERR_INTERNAL_ERROR;
1956 #else
1957             goto not_there;
1958 #endif
1959         if (strEQ(name, "R_BAD_AUTHENTICATION_TYPE"))
1960 #ifdef SSL_R_BAD_AUTHENTICATION_TYPE
1961             return SSL_R_BAD_AUTHENTICATION_TYPE;
1962 #else
1963             goto not_there;
1964 #endif
1965         if (strEQ(name, "R_BAD_CHECKSUM"))
1966 #ifdef SSL_R_BAD_CHECKSUM
1967             return SSL_R_BAD_CHECKSUM;
1968 #else
1969             goto not_there;
1970 #endif
1971         if (strEQ(name, "R_BAD_MAC_DECODE"))
1972 #ifdef SSL_R_BAD_MAC_DECODE
1973             return SSL_R_BAD_MAC_DECODE;
1974 #else
1975             goto not_there;
1976 #endif
1977         if (strEQ(name, "R_BAD_RESPONSE_ARGUMENT"))
1978 #ifdef SSL_R_BAD_RESPONSE_ARGUMENT
1979             return SSL_R_BAD_RESPONSE_ARGUMENT;
1980 #else
1981             goto not_there;
1982 #endif
1983         if (strEQ(name, "R_BAD_SSL_FILETYPE"))
1984 #ifdef SSL_R_BAD_SSL_FILETYPE
1985             return SSL_R_BAD_SSL_FILETYPE;
1986 #else
1987             goto not_there;
1988 #endif
1989         if (strEQ(name, "R_BAD_SSL_SESSION_ID_LENGTH"))
1990 #ifdef SSL_R_BAD_SSL_SESSION_ID_LENGTH
1991             return SSL_R_BAD_SSL_SESSION_ID_LENGTH;
1992 #else
1993             goto not_there;
1994 #endif
1995         if (strEQ(name, "R_BAD_STATE"))
1996 #ifdef SSL_R_BAD_STATE
1997             return SSL_R_BAD_STATE;
1998 #else
1999             goto not_there;
2000 #endif
2001         if (strEQ(name, "R_BAD_WRITE_RETRY"))
2002 #ifdef SSL_R_BAD_WRITE_RETRY
2003             return SSL_R_BAD_WRITE_RETRY;
2004 #else
2005             goto not_there;
2006 #endif
2007         if (strEQ(name, "R_CHALLENGE_IS_DIFFERENT"))
2008 #ifdef SSL_R_CHALLENGE_IS_DIFFERENT
2009             return SSL_R_CHALLENGE_IS_DIFFERENT;
2010 #else
2011             goto not_there;
2012 #endif
2013         if (strEQ(name, "R_CIPHER_CODE_TOO_LONG"))
2014 #ifdef SSL_R_CIPHER_CODE_TOO_LONG
2015             return SSL_R_CIPHER_CODE_TOO_LONG;
2016 #else
2017             goto not_there;
2018 #endif
2019         if (strEQ(name, "R_CIPHER_TABLE_SRC_ERROR"))
2020 #ifdef SSL_R_CIPHER_TABLE_SRC_ERROR
2021             return SSL_R_CIPHER_TABLE_SRC_ERROR;
2022 #else
2023             goto not_there;
2024 #endif
2025         if (strEQ(name, "R_CONECTION_ID_IS_DIFFERENT"))
2026 #ifdef SSL_R_CONECTION_ID_IS_DIFFERENT
2027             return SSL_R_CONECTION_ID_IS_DIFFERENT;
2028 #else
2029             goto not_there;
2030 #endif
2031         if (strEQ(name, "R_INVALID_CHALLENGE_LENGTH"))
2032 #ifdef SSL_R_INVALID_CHALLENGE_LENGTH
2033             return SSL_R_INVALID_CHALLENGE_LENGTH;
2034 #else
2035             goto not_there;
2036 #endif
2037         if (strEQ(name, "R_NO_CERTIFICATE_SET"))
2038 #ifdef SSL_R_NO_CERTIFICATE_SET
2039             return SSL_R_NO_CERTIFICATE_SET;
2040 #else
2041             goto not_there;
2042 #endif
2043         if (strEQ(name, "R_NO_CERTIFICATE_SPECIFIED"))
2044 #ifdef SSL_R_NO_CERTIFICATE_SPECIFIED
2045             return SSL_R_NO_CERTIFICATE_SPECIFIED;
2046 #else
2047             goto not_there;
2048 #endif
2049         if (strEQ(name, "R_NO_CIPHER_LIST"))
2050 #ifdef SSL_R_NO_CIPHER_LIST
2051             return SSL_R_NO_CIPHER_LIST;
2052 #else
2053             goto not_there;
2054 #endif
2055         if (strEQ(name, "R_NO_CIPHER_MATCH"))
2056 #ifdef SSL_R_NO_CIPHER_MATCH
2057             return SSL_R_NO_CIPHER_MATCH;
2058 #else
2059             goto not_there;
2060 #endif
2061         if (strEQ(name, "R_NO_CIPHER_WE_TRUST"))
2062 #ifdef SSL_R_NO_CIPHER_WE_TRUST
2063             return SSL_R_NO_CIPHER_WE_TRUST;
2064 #else
2065             goto not_there;
2066 #endif
2067         if (strEQ(name, "R_NO_PRIVATEKEY"))
2068 #ifdef SSL_R_NO_PRIVATEKEY
2069             return SSL_R_NO_PRIVATEKEY;
2070 #else
2071             goto not_there;
2072 #endif
2073         if (strEQ(name, "R_NO_PUBLICKEY"))
2074 #ifdef SSL_R_NO_PUBLICKEY
2075             return SSL_R_NO_PUBLICKEY;
2076 #else
2077             goto not_there;
2078 #endif
2079         if (strEQ(name, "R_NO_READ_METHOD_SET"))
2080 #ifdef SSL_R_NO_READ_METHOD_SET
2081             return SSL_R_NO_READ_METHOD_SET;
2082 #else
2083             goto not_there;
2084 #endif
2085         if (strEQ(name, "R_NO_WRITE_METHOD_SET"))
2086 #ifdef SSL_R_NO_WRITE_METHOD_SET
2087             return SSL_R_NO_WRITE_METHOD_SET;
2088 #else
2089             goto not_there;
2090 #endif
2091         if (strEQ(name, "R_NULL_SSL_CTX"))
2092 #ifdef SSL_R_NULL_SSL_CTX
2093             return SSL_R_NULL_SSL_CTX;
2094 #else
2095             goto not_there;
2096 #endif
2097         if (strEQ(name, "R_PEER_DID_NOT_RETURN_A_CERTIFICATE"))
2098 #ifdef SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE
2099             return SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE;
2100 #else
2101             goto not_there;
2102 #endif
2103         if (strEQ(name, "R_PEER_ERROR"))
2104 #ifdef SSL_R_PEER_ERROR
2105             return SSL_R_PEER_ERROR;
2106 #else
2107             goto not_there;
2108 #endif
2109         if (strEQ(name, "R_PEER_ERROR_CERTIFICATE"))
2110 #ifdef SSL_R_PEER_ERROR_CERTIFICATE
2111             return SSL_R_PEER_ERROR_CERTIFICATE;
2112 #else
2113             goto not_there;
2114 #endif
2115         if (strEQ(name, "R_PEER_ERROR_NO_CIPHER"))
2116 #ifdef SSL_R_PEER_ERROR_NO_CIPHER
2117             return SSL_R_PEER_ERROR_NO_CIPHER;
2118 #else
2119             goto not_there;
2120 #endif
2121         if (strEQ(name, "R_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE"))
2122 #ifdef SSL_R_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE
2123             return SSL_R_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE;
2124 #else
2125             goto not_there;
2126 #endif
2127         if (strEQ(name, "R_PERR_ERROR_NO_CERTIFICATE"))
2128 #ifdef SSL_R_PERR_ERROR_NO_CERTIFICATE
2129             return SSL_R_PERR_ERROR_NO_CERTIFICATE;
2130 #else
2131             goto not_there;
2132 #endif
2133         if (strEQ(name, "R_PUBLIC_KEY_ENCRYPT_ERROR"))
2134 #ifdef SSL_R_PUBLIC_KEY_ENCRYPT_ERROR
2135             return SSL_R_PUBLIC_KEY_ENCRYPT_ERROR;
2136 #else
2137             goto not_there;
2138 #endif
2139         if (strEQ(name, "R_PUBLIC_KEY_IS_NOT_RSA"))
2140 #ifdef SSL_R_PUBLIC_KEY_IS_NOT_RSA
2141             return SSL_R_PUBLIC_KEY_IS_NOT_RSA;
2142 #else
2143             goto not_there;
2144 #endif
2145         if (strEQ(name, "R_PUBLIC_KEY_NO_RSA"))
2146 #ifdef SSL_R_PUBLIC_KEY_NO_RSA
2147             return SSL_R_PUBLIC_KEY_NO_RSA;
2148 #else
2149             goto not_there;
2150 #endif
2151         if (strEQ(name, "R_READ_WRONG_PACKET_TYPE"))
2152 #ifdef SSL_R_READ_WRONG_PACKET_TYPE
2153             return SSL_R_READ_WRONG_PACKET_TYPE;
2154 #else
2155             goto not_there;
2156 #endif
2157         if (strEQ(name, "R_REVERSE_KEY_ARG_LENGTH_IS_WRONG"))
2158 #ifdef SSL_R_REVERSE_KEY_ARG_LENGTH_IS_WRONG
2159             return SSL_R_REVERSE_KEY_ARG_LENGTH_IS_WRONG;
2160 #else
2161             goto not_there;
2162 #endif
2163         if (strEQ(name, "R_REVERSE_MASTER_KEY_LENGTH_IS_WRONG"))
2164 #ifdef SSL_R_REVERSE_MASTER_KEY_LENGTH_IS_WRONG
2165             return SSL_R_REVERSE_MASTER_KEY_LENGTH_IS_WRONG;
2166 #else
2167             goto not_there;
2168 #endif
2169         if (strEQ(name, "R_REVERSE_SSL_SESSION_ID_LENGTH_IS_WRONG"))
2170 #ifdef SSL_R_REVERSE_SSL_SESSION_ID_LENGTH_IS_WRONG
2171             return SSL_R_REVERSE_SSL_SESSION_ID_LENGTH_IS_WRONG;
2172 #else
2173             goto not_there;
2174 #endif
2175         if (strEQ(name, "R_SHORT_READ"))
2176 #ifdef SSL_R_SHORT_READ
2177             return SSL_R_SHORT_READ;
2178 #else
2179             goto not_there;
2180 #endif
2181         if (strEQ(name, "R_SSL_SESSION_ID_IS_DIFFERENT"))
2182 #ifdef SSL_R_SSL_SESSION_ID_IS_DIFFERENT
2183             return SSL_R_SSL_SESSION_ID_IS_DIFFERENT;
2184 #else
2185             goto not_there;
2186 #endif
2187         if (strEQ(name, "R_UNABLE_TO_EXTRACT_PUBLIC_KEY"))
2188 #ifdef SSL_R_UNABLE_TO_EXTRACT_PUBLIC_KEY
2189             return SSL_R_UNABLE_TO_EXTRACT_PUBLIC_KEY;
2190 #else
2191             goto not_there;
2192 #endif
2193         if (strEQ(name, "R_UNDEFINED_INIT_STATE"))
2194 #ifdef SSL_R_UNDEFINED_INIT_STATE
2195             return SSL_R_UNDEFINED_INIT_STATE;
2196 #else
2197             goto not_there;
2198 #endif
2199         if (strEQ(name, "R_UNKNOWN_REMOTE_ERROR_TYPE"))
2200 #ifdef SSL_R_UNKNOWN_REMOTE_ERROR_TYPE
2201             return SSL_R_UNKNOWN_REMOTE_ERROR_TYPE;
2202 #else
2203             goto not_there;
2204 #endif
2205         if (strEQ(name, "R_UNKNOWN_STATE"))
2206 #ifdef SSL_R_UNKNOWN_STATE
2207             return SSL_R_UNKNOWN_STATE;
2208 #else
2209             goto not_there;
2210 #endif
2211         if (strEQ(name, "R_UNSUPORTED_CIPHER"))
2212 #ifdef SSL_R_UNSUPORTED_CIPHER
2213             return SSL_R_UNSUPORTED_CIPHER;
2214 #else
2215             goto not_there;
2216 #endif
2217         if (strEQ(name, "R_WRONG_PUBLIC_KEY_TYPE"))
2218 #ifdef SSL_R_WRONG_PUBLIC_KEY_TYPE
2219             return SSL_R_WRONG_PUBLIC_KEY_TYPE;
2220 #else
2221             goto not_there;
2222 #endif
2223         if (strEQ(name, "R_X509_LIB"))
2224 #ifdef SSL_R_X509_LIB
2225             return SSL_R_X509_LIB;
2226 #else
2227             goto not_there;
2228 #endif
2229         if (strEQ(name, "RSA_3"))
2230 #ifdef RSA_3
2231                 return RSA_3;
2232 #else
2233                 goto not_there;
2234 #endif
2235         if (strEQ(name, "RSA_F4"))
2236 #ifdef RSA_F4
2237                 return RSA_F4;
2238 #else
2239                 goto not_there;
2240 #endif
2241         break;
2242     case 'S':
2243         if (strEQ(name, "SERVER_VERSION"))
2244 #ifdef SSL_SERVER_VERSION
2245             return SSL_SERVER_VERSION;
2246 #else
2247             goto not_there;
2248 #endif
2249         if (strEQ(name, "SESSION_ASN1_VERSION"))
2250 #ifdef SSL_SESSION_ASN1_VERSION
2251             return SSL_SESSION_ASN1_VERSION;
2252 #else
2253             goto not_there;
2254 #endif
2255         if (strEQ(name, "ST_ACCEPT"))
2256 #ifdef SSL_ST_ACCEPT
2257             return SSL_ST_ACCEPT;
2258 #else
2259             goto not_there;
2260 #endif
2261         if (strEQ(name, "ST_BEFORE"))
2262 #ifdef SSL_ST_BEFORE
2263             return SSL_ST_BEFORE;
2264 #else
2265             goto not_there;
2266 #endif
2267         if (strEQ(name, "ST_CLIENT_START_ENCRYPTION"))
2268 #ifdef SSL_ST_CLIENT_START_ENCRYPTION
2269             return SSL_ST_CLIENT_START_ENCRYPTION;
2270 #else
2271             goto not_there;
2272 #endif
2273         if (strEQ(name, "ST_CONNECT"))
2274 #ifdef SSL_ST_CONNECT
2275             return SSL_ST_CONNECT;
2276 #else
2277             goto not_there;
2278 #endif
2279         if (strEQ(name, "ST_GET_CLIENT_FINISHED_A"))
2280 #ifdef SSL_ST_GET_CLIENT_FINISHED_A
2281             return SSL_ST_GET_CLIENT_FINISHED_A;
2282 #else
2283             goto not_there;
2284 #endif
2285         if (strEQ(name, "ST_GET_CLIENT_FINISHED_B"))
2286 #ifdef SSL_ST_GET_CLIENT_FINISHED_B
2287             return SSL_ST_GET_CLIENT_FINISHED_B;
2288 #else
2289             goto not_there;
2290 #endif
2291         if (strEQ(name, "ST_GET_CLIENT_HELLO_A"))
2292 #ifdef SSL_ST_GET_CLIENT_HELLO_A
2293             return SSL_ST_GET_CLIENT_HELLO_A;
2294 #else
2295             goto not_there;
2296 #endif
2297         if (strEQ(name, "ST_GET_CLIENT_HELLO_B"))
2298 #ifdef SSL_ST_GET_CLIENT_HELLO_B
2299             return SSL_ST_GET_CLIENT_HELLO_B;
2300 #else
2301             goto not_there;
2302 #endif
2303         if (strEQ(name, "ST_GET_CLIENT_MASTER_KEY_A"))
2304 #ifdef SSL_ST_GET_CLIENT_MASTER_KEY_A
2305             return SSL_ST_GET_CLIENT_MASTER_KEY_A;
2306 #else
2307             goto not_there;
2308 #endif
2309         if (strEQ(name, "ST_GET_CLIENT_MASTER_KEY_B"))
2310 #ifdef SSL_ST_GET_CLIENT_MASTER_KEY_B
2311             return SSL_ST_GET_CLIENT_MASTER_KEY_B;
2312 #else
2313             goto not_there;
2314 #endif
2315         if (strEQ(name, "ST_GET_SERVER_FINISHED_A"))
2316 #ifdef SSL_ST_GET_SERVER_FINISHED_A
2317             return SSL_ST_GET_SERVER_FINISHED_A;
2318 #else
2319             goto not_there;
2320 #endif
2321         if (strEQ(name, "ST_GET_SERVER_FINISHED_B"))
2322 #ifdef SSL_ST_GET_SERVER_FINISHED_B
2323             return SSL_ST_GET_SERVER_FINISHED_B;
2324 #else
2325             goto not_there;
2326 #endif
2327         if (strEQ(name, "ST_GET_SERVER_HELLO_A"))
2328 #ifdef SSL_ST_GET_SERVER_HELLO_A
2329             return SSL_ST_GET_SERVER_HELLO_A;
2330 #else
2331             goto not_there;
2332 #endif
2333         if (strEQ(name, "ST_GET_SERVER_HELLO_B"))
2334 #ifdef SSL_ST_GET_SERVER_HELLO_B
2335             return SSL_ST_GET_SERVER_HELLO_B;
2336 #else
2337             goto not_there;
2338 #endif
2339         if (strEQ(name, "ST_GET_SERVER_VERIFY_A"))
2340 #ifdef SSL_ST_GET_SERVER_VERIFY_A
2341             return SSL_ST_GET_SERVER_VERIFY_A;
2342 #else
2343             goto not_there;
2344 #endif
2345         if (strEQ(name, "ST_GET_SERVER_VERIFY_B"))
2346 #ifdef SSL_ST_GET_SERVER_VERIFY_B
2347             return SSL_ST_GET_SERVER_VERIFY_B;
2348 #else
2349             goto not_there;
2350 #endif
2351         if (strEQ(name, "ST_INIT"))
2352 #ifdef SSL_ST_INIT
2353             return SSL_ST_INIT;
2354 #else
2355             goto not_there;
2356 #endif
2357         if (strEQ(name, "ST_OK"))
2358 #ifdef SSL_ST_OK
2359             return SSL_ST_OK;
2360 #else
2361             goto not_there;
2362 #endif
2363         if (strEQ(name, "ST_READ_BODY"))
2364 #ifdef SSL_ST_READ_BODY
2365             return SSL_ST_READ_BODY;
2366 #else
2367             goto not_there;
2368 #endif
2369         if (strEQ(name, "ST_READ_HEADER"))
2370 #ifdef SSL_ST_READ_HEADER
2371             return SSL_ST_READ_HEADER;
2372 #else
2373             goto not_there;
2374 #endif
2375         if (strEQ(name, "ST_SEND_CLIENT_CERTIFICATE_A"))
2376 #ifdef SSL_ST_SEND_CLIENT_CERTIFICATE_A
2377             return SSL_ST_SEND_CLIENT_CERTIFICATE_A;
2378 #else
2379             goto not_there;
2380 #endif
2381         if (strEQ(name, "ST_SEND_CLIENT_CERTIFICATE_B"))
2382 #ifdef SSL_ST_SEND_CLIENT_CERTIFICATE_B
2383             return SSL_ST_SEND_CLIENT_CERTIFICATE_B;
2384 #else
2385             goto not_there;
2386 #endif
2387         if (strEQ(name, "ST_SEND_CLIENT_CERTIFICATE_C"))
2388 #ifdef SSL_ST_SEND_CLIENT_CERTIFICATE_C
2389             return SSL_ST_SEND_CLIENT_CERTIFICATE_C;
2390 #else
2391             goto not_there;
2392 #endif
2393         if (strEQ(name, "ST_SEND_CLIENT_CERTIFICATE_D"))
2394 #ifdef SSL_ST_SEND_CLIENT_CERTIFICATE_D
2395             return SSL_ST_SEND_CLIENT_CERTIFICATE_D;
2396 #else
2397             goto not_there;
2398 #endif
2399         if (strEQ(name, "ST_SEND_CLIENT_FINISHED_A"))
2400 #ifdef SSL_ST_SEND_CLIENT_FINISHED_A
2401             return SSL_ST_SEND_CLIENT_FINISHED_A;
2402 #else
2403             goto not_there;
2404 #endif
2405         if (strEQ(name, "ST_SEND_CLIENT_FINISHED_B"))
2406 #ifdef SSL_ST_SEND_CLIENT_FINISHED_B
2407             return SSL_ST_SEND_CLIENT_FINISHED_B;
2408 #else
2409             goto not_there;
2410 #endif
2411         if (strEQ(name, "ST_SEND_CLIENT_HELLO_A"))
2412 #ifdef SSL_ST_SEND_CLIENT_HELLO_A
2413             return SSL_ST_SEND_CLIENT_HELLO_A;
2414 #else
2415             goto not_there;
2416 #endif
2417         if (strEQ(name, "ST_SEND_CLIENT_HELLO_B"))
2418 #ifdef SSL_ST_SEND_CLIENT_HELLO_B
2419             return SSL_ST_SEND_CLIENT_HELLO_B;
2420 #else
2421             goto not_there;
2422 #endif
2423         if (strEQ(name, "ST_SEND_CLIENT_MASTER_KEY_A"))
2424 #ifdef SSL_ST_SEND_CLIENT_MASTER_KEY_A
2425             return SSL_ST_SEND_CLIENT_MASTER_KEY_A;
2426 #else
2427             goto not_there;
2428 #endif
2429         if (strEQ(name, "ST_SEND_CLIENT_MASTER_KEY_B"))
2430 #ifdef SSL_ST_SEND_CLIENT_MASTER_KEY_B
2431             return SSL_ST_SEND_CLIENT_MASTER_KEY_B;
2432 #else
2433             goto not_there;
2434 #endif
2435         if (strEQ(name, "ST_SEND_REQUEST_CERTIFICATE_A"))
2436 #ifdef SSL_ST_SEND_REQUEST_CERTIFICATE_A
2437             return SSL_ST_SEND_REQUEST_CERTIFICATE_A;
2438 #else
2439             goto not_there;
2440 #endif
2441         if (strEQ(name, "ST_SEND_REQUEST_CERTIFICATE_B"))
2442 #ifdef SSL_ST_SEND_REQUEST_CERTIFICATE_B
2443             return SSL_ST_SEND_REQUEST_CERTIFICATE_B;
2444 #else
2445             goto not_there;
2446 #endif
2447         if (strEQ(name, "ST_SEND_REQUEST_CERTIFICATE_C"))
2448 #ifdef SSL_ST_SEND_REQUEST_CERTIFICATE_C
2449             return SSL_ST_SEND_REQUEST_CERTIFICATE_C;
2450 #else
2451             goto not_there;
2452 #endif
2453         if (strEQ(name, "ST_SEND_REQUEST_CERTIFICATE_D"))
2454 #ifdef SSL_ST_SEND_REQUEST_CERTIFICATE_D
2455             return SSL_ST_SEND_REQUEST_CERTIFICATE_D;
2456 #else
2457             goto not_there;
2458 #endif
2459         if (strEQ(name, "ST_SEND_SERVER_FINISHED_A"))
2460 #ifdef SSL_ST_SEND_SERVER_FINISHED_A
2461             return SSL_ST_SEND_SERVER_FINISHED_A;
2462 #else
2463             goto not_there;
2464 #endif
2465         if (strEQ(name, "ST_SEND_SERVER_FINISHED_B"))
2466 #ifdef SSL_ST_SEND_SERVER_FINISHED_B
2467             return SSL_ST_SEND_SERVER_FINISHED_B;
2468 #else
2469             goto not_there;
2470 #endif
2471         if (strEQ(name, "ST_SEND_SERVER_HELLO_A"))
2472 #ifdef SSL_ST_SEND_SERVER_HELLO_A
2473             return SSL_ST_SEND_SERVER_HELLO_A;
2474 #else
2475             goto not_there;
2476 #endif
2477         if (strEQ(name, "ST_SEND_SERVER_HELLO_B"))
2478 #ifdef SSL_ST_SEND_SERVER_HELLO_B
2479             return SSL_ST_SEND_SERVER_HELLO_B;
2480 #else
2481             goto not_there;
2482 #endif
2483         if (strEQ(name, "ST_SEND_SERVER_VERIFY_A"))
2484 #ifdef SSL_ST_SEND_SERVER_VERIFY_A
2485             return SSL_ST_SEND_SERVER_VERIFY_A;
2486 #else
2487             goto not_there;
2488 #endif
2489         if (strEQ(name, "ST_SEND_SERVER_VERIFY_B"))
2490 #ifdef SSL_ST_SEND_SERVER_VERIFY_B
2491             return SSL_ST_SEND_SERVER_VERIFY_B;
2492 #else
2493             goto not_there;
2494 #endif
2495         if (strEQ(name, "ST_SERVER_START_ENCRYPTION"))
2496 #ifdef SSL_ST_SERVER_START_ENCRYPTION
2497             return SSL_ST_SERVER_START_ENCRYPTION;
2498 #else
2499             goto not_there;
2500 #endif
2501         if (strEQ(name, "ST_X509_GET_CLIENT_CERTIFICATE"))
2502 #ifdef SSL_ST_X509_GET_CLIENT_CERTIFICATE
2503             return SSL_ST_X509_GET_CLIENT_CERTIFICATE;
2504 #else
2505             goto not_there;
2506 #endif
2507         if (strEQ(name, "ST_X509_GET_SERVER_CERTIFICATE"))
2508 #ifdef SSL_ST_X509_GET_SERVER_CERTIFICATE
2509             return SSL_ST_X509_GET_SERVER_CERTIFICATE;
2510 #else
2511             goto not_there;
2512 #endif
2513         break;
2514     case 'T':
2515 #if 0
2516         if (strEQ(name, "TXT_DES_192_EDE3_CBC_WITH_MD5"))
2517 #ifdef SSL_TXT_DES_192_EDE3_CBC_WITH_MD5
2518             return SSL_TXT_DES_192_EDE3_CBC_WITH_MD5;
2519 #else
2520             goto not_there;
2521 #endif
2522         if (strEQ(name, "TXT_DES_192_EDE3_CBC_WITH_SHA"))
2523 #ifdef SSL_TXT_DES_192_EDE3_CBC_WITH_SHA
2524             return SSL_TXT_DES_192_EDE3_CBC_WITH_SHA;
2525 #else
2526             goto not_there;
2527 #endif
2528         if (strEQ(name, "TXT_DES_64_CBC_WITH_MD5"))
2529 #ifdef SSL_TXT_DES_64_CBC_WITH_MD5
2530             return SSL_TXT_DES_64_CBC_WITH_MD5;
2531 #else
2532             goto not_there;
2533 #endif
2534         if (strEQ(name, "TXT_DES_64_CBC_WITH_SHA"))
2535 #ifdef SSL_TXT_DES_64_CBC_WITH_SHA
2536             return SSL_TXT_DES_64_CBC_WITH_SHA;
2537 #else
2538             goto not_there;
2539 #endif
2540         if (strEQ(name, "TXT_DES_64_CFB64_WITH_MD5_1"))
2541 #ifdef SSL_TXT_DES_64_CFB64_WITH_MD5_1
2542             return SSL_TXT_DES_64_CFB64_WITH_MD5_1;
2543 #else
2544             goto not_there;
2545 #endif
2546         if (strEQ(name, "TXT_IDEA_128_CBC_WITH_MD5"))
2547 #ifdef SSL_TXT_IDEA_128_CBC_WITH_MD5
2548             return SSL_TXT_IDEA_128_CBC_WITH_MD5;
2549 #else
2550             goto not_there;
2551 #endif
2552         if (strEQ(name, "TXT_NULL"))
2553 #ifdef SSL_TXT_NULL
2554             return SSL_TXT_NULL;
2555 #else
2556             goto not_there;
2557 #endif
2558         if (strEQ(name, "TXT_NULL_WITH_MD5"))
2559 #ifdef SSL_TXT_NULL_WITH_MD5
2560             return SSL_TXT_NULL_WITH_MD5;
2561 #else
2562             goto not_there;
2563 #endif
2564         if (strEQ(name, "TXT_RC2_128_CBC_EXPORT40_WITH_MD5"))
2565 #ifdef SSL_TXT_RC2_128_CBC_EXPORT40_WITH_MD5
2566             return SSL_TXT_RC2_128_CBC_EXPORT40_WITH_MD5;
2567 #else
2568             goto not_there;
2569 #endif
2570         if (strEQ(name, "TXT_RC2_128_CBC_WITH_MD5"))
2571 #ifdef SSL_TXT_RC2_128_CBC_WITH_MD5
2572             return SSL_TXT_RC2_128_CBC_WITH_MD5;
2573 #else
2574             goto not_there;
2575 #endif
2576         if (strEQ(name, "TXT_RC4_128_EXPORT40_WITH_MD5"))
2577 #ifdef SSL_TXT_RC4_128_EXPORT40_WITH_MD5
2578             return SSL_TXT_RC4_128_EXPORT40_WITH_MD5;
2579 #else
2580             goto not_there;
2581 #endif
2582         if (strEQ(name, "TXT_RC4_128_WITH_MD5"))
2583 #ifdef SSL_TXT_RC4_128_WITH_MD5
2584             return SSL_TXT_RC4_128_WITH_MD5;
2585 #else
2586             goto not_there;
2587 #endif
2588 #endif
2589         break;
2590     case 'U':
2591         break;
2592     case 'V':
2593         if (strEQ(name, "VERIFY_CLIENT_ONCE"))
2594 #ifdef SSL_VERIFY_CLIENT_ONCE
2595             return SSL_VERIFY_CLIENT_ONCE;
2596 #else
2597             goto not_there;
2598 #endif
2599         if (strEQ(name, "VERIFY_FAIL_IF_NO_PEER_CERT"))
2600 #ifdef SSL_VERIFY_FAIL_IF_NO_PEER_CERT
2601             return SSL_VERIFY_FAIL_IF_NO_PEER_CERT;
2602 #else
2603             goto not_there;
2604 #endif
2605         if (strEQ(name, "VERIFY_NONE"))
2606 #ifdef SSL_VERIFY_NONE
2607             return SSL_VERIFY_NONE;
2608 #else
2609             goto not_there;
2610 #endif
2611         if (strEQ(name, "VERIFY_PEER"))
2612 #ifdef SSL_VERIFY_PEER
2613             return SSL_VERIFY_PEER;
2614 #else
2615             goto not_there;
2616 #endif
2617         break;
2618     case 'W':
2619         if (strEQ(name, "WRITING"))
2620 #ifdef SSL_WRITING
2621             return SSL_WRITING;
2622 #else
2623             goto not_there;
2624 #endif
2625         break;
2626     case 'X':
2627         if (strEQ(name, "X509_LOOKUP"))
2628 #ifdef SSL_X509_LOOKUP
2629             return SSL_X509_LOOKUP;
2630 #else
2631             goto not_there;
2632 #endif
2633
2634         if (strEQ(name, "X509_V_FLAG_CB_ISSUER_CHECK"))
2635 #ifdef X509_V_FLAG_CB_ISSUER_CHECK
2636             return X509_V_FLAG_CB_ISSUER_CHECK;
2637 #else
2638             goto not_there;
2639 #endif
2640
2641         if (strEQ(name, "X509_V_FLAG_USE_CHECK_TIME"))
2642 #ifdef X509_V_FLAG_USE_CHECK_TIME
2643             return X509_V_FLAG_USE_CHECK_TIME;
2644 #else
2645             goto not_there;
2646 #endif
2647         if (strEQ(name, "X509_V_FLAG_CRL_CHECK"))
2648 #ifdef X509_V_FLAG_CRL_CHECK
2649             return X509_V_FLAG_CRL_CHECK;
2650 #else
2651             goto not_there;
2652 #endif
2653         if (strEQ(name, "X509_V_FLAG_CRL_CHECK_ALL"))
2654 #ifdef X509_V_FLAG_CRL_CHECK_ALL
2655             return X509_V_FLAG_CRL_CHECK_ALL;
2656 #else
2657             goto not_there;
2658 #endif
2659         if (strEQ(name, "X509_V_FLAG_IGNORE_CRITICAL"))
2660 #ifdef X509_V_FLAG_IGNORE_CRITICAL
2661             return X509_V_FLAG_IGNORE_CRITICAL;
2662 #else
2663             goto not_there;
2664 #endif
2665         break;
2666     case 'Y':
2667         break;
2668     case 'Z':
2669         break;
2670         case '_':
2671         if (strEQ(name, "_TEST_INVALID_CONSTANT"))
2672                 goto not_there;
2673     }
2674     errno = EINVAL;
2675     return 0;
2676
2677 not_there:
2678     errno = ENOENT;
2679     return 0;
2680 }
2681