Module lhash

lhash module for lua-openssl binding

LHASH is OpenSSL’s implementation of a hash table.

It provides a generic hash table that can be used to store arbitrary data using string keys. This module provides Lua bindings for the LHASH functionality.

Usage:

    lhash = require('openssl').lhash
    

Functions

read (bio) read configuration hash from BIO object
load (conf_file) load configuration hash from file
get_number (group, name) get number value from LHASH configuration
get_string (group, name) get string value from LHASH configuration
parse () parse LHASH configuration to table
export () export LHASH configuration to string


Functions

read (bio)
read configuration hash from BIO object

Parameters:

  • bio bio BIO object to read from

Returns:

    lhash configuration hash object
load (conf_file)
load configuration hash from file

Parameters:

  • conf_file string path to configuration file

Returns:

    lhash configuration hash object
get_number (group, name)
get number value from LHASH configuration

Parameters:

  • group string configuration group name
  • name string configuration key name

Returns:

    number configuration value as number
get_string (group, name)
get string value from LHASH configuration

Parameters:

  • group string configuration group name
  • name string configuration key name

Returns:

    string configuration value as string
parse ()
parse LHASH configuration to table

Returns:

    table configuration data as key-value pairs
export ()
export LHASH configuration to string

Returns:

    string configuration data in OpenSSL config format
generated by LDoc 1.5.0 Last updated 2025-09-22 19:55:54