Simple interface for Mbed Cloud Client

Dependents:  

Embed: (wiki syntax)

« Back to documentation index

kcm_status.h File Reference

kcm_status.h File Reference

Keys and configuration manager (KCM) status/error codes. More...

Go to the source code of this file.

Enumerations

enum  kcm_status_e {
  KCM_STATUS_SUCCESS, KCM_STATUS_ERROR, KCM_STATUS_INVALID_PARAMETER, KCM_STATUS_INSUFFICIENT_BUFFER,
  KCM_STATUS_OUT_OF_MEMORY, KCM_STATUS_ITEM_NOT_FOUND, KCM_STATUS_META_DATA_NOT_FOUND, KCM_STATUS_META_DATA_SIZE_ERROR,
  KCM_STATUS_FILE_EXIST, KCM_STATUS_NOT_PERMITTED, KCM_STATUS_STORAGE_ERROR, KCM_STATUS_ITEM_IS_EMPTY,
  KCM_STATUS_INVALID_FILE_VERSION, KCM_STATUS_FILE_CORRUPTED, KCM_STATUS_FILE_NAME_CORRUPTED, KCM_STATUS_INVALID_FILE_ACCESS_MODE,
  KCM_STATUS_UNKNOWN_STORAGE_ERROR, KCM_STATUS_NOT_INITIALIZED, KCM_STATUS_CLOSE_INCOMPLETE_CHAIN, KCM_STATUS_INVALID_CHAIN,
  KCM_STATUS_INVALID_NUM_OF_CERT_IN_CHAIN, KCM_STATUS_FILE_NAME_TOO_LONG, KCM_CRYPTO_STATUS_UNSUPPORTED_HASH_MODE, KCM_CRYPTO_STATUS_PARSING_DER_PRIVATE_KEY,
  KCM_CRYPTO_STATUS_PARSING_DER_PUBLIC_KEY, KCM_CRYPTO_STATUS_PK_KEY_INVALID_FORMAT, KCM_CRYPTO_STATUS_INVALID_PK_PUBKEY, KCM_CRYPTO_STATUS_ECP_INVALID_KEY,
  KCM_CRYPTO_STATUS_PK_KEY_INVALID_VERSION, KCM_CRYPTO_STATUS_PK_PASSWORD_REQUIRED, KCM_CRYPTO_STATUS_PRIVATE_KEY_VERIFICATION_FAILED, KCM_CRYPTO_STATUS_PUBLIC_KEY_VERIFICATION_FAILED,
  KCM_CRYPTO_STATUS_PK_UNKNOWN_PK_ALG, KCM_CRYPTO_STATUS_UNSUPPORTED_CURVE, KCM_CRYPTO_STATUS_PARSING_DER_CERT, KCM_CRYPTO_STATUS_CERT_EXPIRED,
  KCM_CRYPTO_STATUS_CERT_FUTURE, KCM_CRYPTO_STATUS_CERT_MD_ALG, KCM_CRYPTO_STATUS_CERT_PUB_KEY_TYPE, KCM_CRYPTO_STATUS_CERT_PUB_KEY,
  KCM_CRYPTO_STATUS_CERT_NOT_TRUSTED, KCM_CRYPTO_STATUS_INVALID_X509_ATTR, KCM_CRYPTO_STATUS_VERIFY_SIGNATURE_FAILED, KCM_CRYPTO_STATUS_INVALID_MD_TYPE,
  KCM_CRYPTO_STATUS_FAILED_TO_WRITE_SIGNATURE
}

Detailed Description

Keys and configuration manager (KCM) status/error codes.

This list may grow as needed.

Definition in file kcm_status.h.


Enumeration Type Documentation

Enumerator:
KCM_STATUS_SUCCESS 

Operation completed successfully.

KCM_STATUS_ERROR 

Operation ended with an unspecified error.

KCM_STATUS_INVALID_PARAMETER 

A parameter provided to the function was invalid.

KCM_STATUS_INSUFFICIENT_BUFFER 

The provided buffer size was insufficient for the required output.

KCM_STATUS_OUT_OF_MEMORY 

An out-of-memory condition occurred.

KCM_STATUS_ITEM_NOT_FOUND 

The item was not found in the storage.

KCM_STATUS_META_DATA_NOT_FOUND 

The meta data was not found in the file.

KCM_STATUS_META_DATA_SIZE_ERROR 

The meta data found but the size is different then expected.

KCM_STATUS_FILE_EXIST 

Trying to store an item that is already in the storage.

KCM_STATUS_NOT_PERMITTED 

Trying to access an item without proper permissions.

KCM_STATUS_STORAGE_ERROR 

File error occurred.

KCM_STATUS_ITEM_IS_EMPTY 

The data of current item is empty.

KCM_STATUS_INVALID_FILE_VERSION 

Invalid file version, the file can not be read.

KCM_STATUS_FILE_CORRUPTED 

File data corrupted, the file can not be read.

KCM_STATUS_FILE_NAME_CORRUPTED 

File name corrupted, the file can not be read.

KCM_STATUS_INVALID_FILE_ACCESS_MODE 

Invalid file access mode.

KCM_STATUS_UNKNOWN_STORAGE_ERROR 

KCM can not translate current storage error.

KCM_STATUS_NOT_INITIALIZED 

KCM did not initialized.

KCM_STATUS_CLOSE_INCOMPLETE_CHAIN 

Closing KCM chain with less certificates than declared in create.

KCM_STATUS_INVALID_CHAIN 

KCM invalid chain detected.

KCM_STATUS_INVALID_NUM_OF_CERT_IN_CHAIN 

Operation failed due to invalid number of certificates.

KCM_STATUS_FILE_NAME_TOO_LONG 

Provided a file name that is longer than permitted.

KCM_CRYPTO_STATUS_UNSUPPORTED_HASH_MODE 

Operation was called with unsupported hash mode.

KCM_CRYPTO_STATUS_PARSING_DER_PRIVATE_KEY 

Operation failed to parse private der key.

KCM_CRYPTO_STATUS_PARSING_DER_PUBLIC_KEY 

Operation failed to parse public der key.

KCM_CRYPTO_STATUS_PK_KEY_INVALID_FORMAT 

Operation failed due to invalid pk key format.

KCM_CRYPTO_STATUS_INVALID_PK_PUBKEY 

Operation failed due to invalid pk public key.

KCM_CRYPTO_STATUS_ECP_INVALID_KEY 

Operation failed due to invalid ECP key.

KCM_CRYPTO_STATUS_PK_KEY_INVALID_VERSION 

Operation failed due to invalid pk version of key.

KCM_CRYPTO_STATUS_PK_PASSWORD_REQUIRED 

Operation failed due to missing password.

KCM_CRYPTO_STATUS_PRIVATE_KEY_VERIFICATION_FAILED 

Operation failed to verify private key.

KCM_CRYPTO_STATUS_PUBLIC_KEY_VERIFICATION_FAILED 

Operation failed to verify public key.

KCM_CRYPTO_STATUS_PK_UNKNOWN_PK_ALG 

Operation failed due to unknown pk algorithm,.

KCM_CRYPTO_STATUS_UNSUPPORTED_CURVE 

Unsupported curve.

KCM_CRYPTO_STATUS_PARSING_DER_CERT 

Operation failed to parse der certificate.

KCM_CRYPTO_STATUS_CERT_EXPIRED 

Certificate validity is expired.

KCM_CRYPTO_STATUS_CERT_FUTURE 

Certificate validity starts in future.

KCM_CRYPTO_STATUS_CERT_MD_ALG 

Certificate with bad MD algorithm.

KCM_CRYPTO_STATUS_CERT_PUB_KEY_TYPE 

Certificate with unsupported public key PK type.

KCM_CRYPTO_STATUS_CERT_PUB_KEY 

Certificate with bad public key data (size or curve).

KCM_CRYPTO_STATUS_CERT_NOT_TRUSTED 

Certificate is not trusted.

KCM_CRYPTO_STATUS_INVALID_X509_ATTR 

Certificate with bad x509 attribute.

KCM_CRYPTO_STATUS_VERIFY_SIGNATURE_FAILED 

Operation failed to check the signature.

KCM_CRYPTO_STATUS_INVALID_MD_TYPE 

Operation failed in check of ecc md type.

KCM_CRYPTO_STATUS_FAILED_TO_WRITE_SIGNATURE 

Operation failed to calculate signature.

Definition at line 30 of file kcm_status.h.