- items = confparser.items(a_section)
- opts.ca[ca_name] = {}
- for (key,value) in items:
- opts.ca[ca_name][key] = value
+ opts.ca[ca_name] = BaseConfigDerived()
+ opts.ca[ca_name].hash_function = None
+ opts.ca[ca_name].populate(confparser,a_section)
+ opts.ca[ca_name].cakey = None
+ opts.ca[ca_name].cacert = None
+
+ if opts.ca[ca_name].hash_function == 'sha1':
+ warnings.warn('hash_function value of sha1 is deprecated in ca:%s section' % ca_name, DeprecationWarning)
+ elif opts.ca[ca_name].hash_function == 'md5':
+ print >> sys.stderr, "Error: hash_function of md5 is not supported in ca:% section" % ca_name