Elektra 0.9.0 release, and general security framework

Elektra is a common and safe framework for global access configuration settings hierarchical key database. Elektra abstract from issues related to the cross-platform, enables applications to understand the configuration of other applications, using simple application integration.

0.9.0 version has been released, updated as follows:

Cache

Cache  is a new global cache plug-in, which uses mmapStorage as its back-end storage, and store the entire configuration from the previous configuration visit lazily.

Suppose there are 649 fully specified INI configuration files with multiple file parser installed together (which means you must be copied to regulate all configuration settings). Prior to caching, arranged to retrieve the entire 6 seconds or even 13 seconds. For Cache, the entire operation after the first visit less than 0.5 seconds.

By default, the plug-in installed once the cache, the cache is automatically enabled, the cache can be found in ~ / .cache / Elektra in.

There is a limit:

  • Mount point is not connected to a file, you can not cache
  • Cache does not currently work with other global plugins

Also added to enable, disable, and clear the cache of tools.

Command Line Options 

Gopts  is a new plug-in, which integrates support for application command line options:

  • Gopts plug retrieve the required elektraGetOpts the ARGC, ARG and envp value, and then make the call. It is used as a global plugin to automatically parse the command-line option when calling kdbGet
  • The plug-in work Win 32 (and through GetCommandLineW GetEnvironmentString), MAC_OSX (_NSGetArgc, _NSGetArgv), and having any receiving sysctl Kern_proc_args (e.g. the FreeBSD) (3) function or when the system is mounted when the prof, and / proc / Self or / proc / curproc all refer to the current process. If you need any support other systems, you can add a realization

kdbEnure Elektra-kdb is in a new function. It can be used to ensure KDB instance to meet certain terms specified in the contract. In principle, this is a very powerful tool that can be used for many things. All changes are kdbEnInsurance be passed to the handler function within KDB.

error code

With this version, we messed up the code system can be turned into a more structured and more clean way. And SQLState similar, we changed the structure of the error code, and they have been migrated. This allows us to see easily extend standard, without breaking existing code, and to avoid the risk of repeating mistakes.

Plug

This version adds nine plug-ins, delete the two plug-ins:

  • Type: The plug-in is completely rewritten in C, provide functional enum and bool plug-in, the old version is called cpptype

  • Base64: fixes some warnings about implicit type base 64 plug-in conversion UBSan report

  • Crypto and Fcrypt: add empty gpg key ID will result in an error when calling gpg; will be applied to the main base 64 encoded password, which is stored in the plug-in configuration, which solves the time if there is stored as the default ini problem; fix compile OpenSSL API's

  • CSVStorage: CSVStorage plug-in supports DOS newline

  • Filecheck: Fixed UBSAN report some warnings about implicit type conversions

  • INI: plug-in will write INI files no longer appear in the spaces around the "="

  • Macaddr: add a plug-in to handle the MAC address

  • ......

 Read more, see the release notes

Guess you like

Origin www.oschina.net/news/108872/elektra-0-9-0-released