I've always wanted to make the CONF library more adaptable. Here's
authorRichard Levitte <levitte@openssl.org>
Sun, 9 Apr 2000 12:04:35 +0000 (12:04 +0000)
committerRichard Levitte <levitte@openssl.org>
Sun, 9 Apr 2000 12:04:35 +0000 (12:04 +0000)
commitd86b6915bebbd86c46680e24d152f497cd85bc85
tree6f3e3eb19cd5689c34c2ec47bc4a6074000c9c0d
parent05e15b046f624a9a05e86a2c0ca7e3d87794d138
I've always wanted to make the CONF library more adaptable.  Here's
the result.

I have retained the old behavior of the CONF_* functions, and have
added a more "object oriented" interface through NCONF_* functions
(New CONF, you see :-)), working the same way as, for example, the
BIO interface.  Really, the CONF_* are rewritten so they use the
NCONF_* functions internally.

In addition to that, I've split the old conf.c code into two files,
conf_def.c and conf_api.c.  conf_def.c contains the default config
object that reads a configuration file the standard OpenSSL way, as
well as configuration file with Win32 registry file syntax (I'm not
sure I got that one right).  conf_api.c provides an API to build other
configuration file readers around (can you see a configuraion file in
XML?  I can :-)).

Finally, I've changed the name conf_lcl.h to conf_def.h, since it's
made specifically for that "class" and none others.
crypto/conf/Makefile.ssl
crypto/conf/conf.h
crypto/conf/conf_api.c [new file with mode: 0644]
crypto/conf/conf_api.h [new file with mode: 0644]
crypto/conf/conf_def.c [moved from crypto/conf/conf.c with 60% similarity]
crypto/conf/conf_def.h [moved from crypto/conf/conf_lcl.h with 64% similarity]
crypto/conf/conf_err.c
crypto/conf/conf_lib.c [new file with mode: 0644]
crypto/conf/keysets.pl
crypto/conf/test.c