diff options
author | Janne Peltonen <janne.peltonen@nokia.com> | 2022-01-13 17:35:57 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-01-28 11:45:01 +0200 |
commit | 20aad5661883f164852b89e34e2c3585e9d81ff3 (patch) | |
tree | c7dad2fcba358e4889a7284c18f5e6fcb7826bb2 /include/odp/api/spec/crypto.h | |
parent | 38d41774d0382df7d8017fca90a568a71c29f7b4 (diff) |
api: crypto: shorten session creation error names
Make the names of session creation errors a bit shorter but retain the
old names too for backward compatibility.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Anoob Joseph <anoobj@marvell.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'include/odp/api/spec/crypto.h')
-rw-r--r-- | include/odp/api/spec/crypto.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 468dc1df5..2ebf6afb1 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -864,15 +864,24 @@ typedef struct odp_crypto_packet_op_param_t { */ typedef enum { /** Session created */ - ODP_CRYPTO_SES_CREATE_ERR_NONE, + ODP_CRYPTO_SES_ERR_NONE, /** Creation failed, no resources */ - ODP_CRYPTO_SES_CREATE_ERR_ENOMEM, + ODP_CRYPTO_SES_ERR_ENOMEM, /** Creation failed, bad cipher params */ - ODP_CRYPTO_SES_CREATE_ERR_INV_CIPHER, + ODP_CRYPTO_SES_ERR_CIPHER, /** Creation failed, bad auth params */ - ODP_CRYPTO_SES_CREATE_ERR_INV_AUTH, + ODP_CRYPTO_SES_ERR_AUTH, } odp_crypto_ses_create_err_t; +/** This synonym for backward compatibility will be deprecated later */ +#define ODP_CRYPTO_SES_CREATE_ERR_NONE ODP_CRYPTO_SES_ERR_NONE +/** This synonym for backward compatibility will be deprecated later */ +#define ODP_CRYPTO_SES_CREATE_ERR_ENOMEM ODP_CRYPTO_SES_ERR_ENOMEM +/** This synonym for backward compatibility will be deprecated later */ +#define ODP_CRYPTO_SES_CREATE_ERR_INV_CIPHER ODP_CRYPTO_SES_ERR_CIPHER +/** This synonym for backward compatibility will be deprecated later */ +#define ODP_CRYPTO_SES_CREATE_ERR_INV_AUTH ODP_CRYPTO_SES_ERR_AUTH + /** * Crypto API algorithm return code */ |