Skip to content

File SolidSyslogAesGcmPolicyErrors.h

FileList > Core > Interface > SolidSyslogAesGcmPolicyErrors.h

Portable detail codes for the AES-GCM security-policy role, shared by every crypto backend that fills it.

  • #include <stdint.h>
  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogAesGcmPolicyErrors

Detail codes an AES-GCM policy reports through event->Detail, shared by every crypto backend.

enum SolidSyslogAesGcmPolicyErrors {
    SOLIDSYSLOG_AES_GCM_POLICY_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_AES_GCM_POLICY_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_AES_GCM_POLICY_ERROR_BAD_CONFIG,
    SOLIDSYSLOG_AES_GCM_POLICY_ERROR_KEY_UNAVAILABLE,
    SOLIDSYSLOG_AES_GCM_POLICY_ERROR_NONCE_FAILED,
    SOLIDSYSLOG_AES_GCM_POLICY_ERROR_ENCRYPT_FAILED,
    SOLIDSYSLOG_AES_GCM_POLICY_ERROR_DECRYPT_FAILED,
    SOLIDSYSLOG_AES_GCM_POLICY_ERROR_MAX
};

Sealing a record at rest fails for the same reasons whichever library performs it, so a handler matching on these keeps working when the backend is swapped.

event->Source still names the backend that spoke, for diagnosis.


Public Functions Documentation

SolidSyslogAesGcmPolicyErrors_Name

The detail's name, read beside the category's: BAD_CONFIG for SOLIDSYSLOG_AES_GCM_POLICY_ERROR_BAD_CONFIG.

const char * SolidSyslogAesGcmPolicyErrors_Name (
    int32_t detail
) 

NULL for a code outside the enum.



The documentation for this class was generated from the following file Core/Interface/SolidSyslogAesGcmPolicyErrors.h