asn_moid.c (109998) | asn_moid.c (127128) |
---|---|
1/* asn_moid.c */ 2/* Written by Stephen Henson (shenson@bigfoot.com) for the OpenSSL 3 * project 2001. 4 */ 5/* ==================================================================== 6 * Copyright (c) 2001 The OpenSSL Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 73 unchanged lines hidden (view full) --- 82 oval = sk_CONF_VALUE_value(sktmp, i); 83 if(OBJ_create(oval->value, oval->name, oval->name) == NID_undef) 84 { 85 ASN1err(ASN1_F_OID_MODULE_INIT, ASN1_R_ADDING_OBJECT); 86 return 0; 87 } 88 } 89 return 1; | 1/* asn_moid.c */ 2/* Written by Stephen Henson (shenson@bigfoot.com) for the OpenSSL 3 * project 2001. 4 */ 5/* ==================================================================== 6 * Copyright (c) 2001 The OpenSSL Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 73 unchanged lines hidden (view full) --- 82 oval = sk_CONF_VALUE_value(sktmp, i); 83 if(OBJ_create(oval->value, oval->name, oval->name) == NID_undef) 84 { 85 ASN1err(ASN1_F_OID_MODULE_INIT, ASN1_R_ADDING_OBJECT); 86 return 0; 87 } 88 } 89 return 1; |
90} | 90 } |
91 | 91 |
92static void oid_module_finish(CONF_IMODULE *md) 93 { 94 OBJ_cleanup(); 95 } 96 |
|
92void ASN1_add_oid_module(void) 93 { | 97void ASN1_add_oid_module(void) 98 { |
94 CONF_module_add("oid_section", oid_module_init, 0); | 99 CONF_module_add("oid_section", oid_module_init, oid_module_finish); |
95 } | 100 } |