diff options
author | Radek Novacek <rnovacek@redhat.com> | 2013-11-18 14:45:34 +0100 |
---|---|---|
committer | Radek Novacek <rnovacek@redhat.com> | 2013-11-19 08:51:41 +0100 |
commit | b74d51dd10dbd872a6a23c98a4ae5ea503ee1699 (patch) | |
tree | 5aad6ab903125b2ec365c09570602e4e7cf0ac5e /src/realmd | |
parent | 45508add507afa96603cf122a1c59f7b463ba6e2 (diff) | |
download | openlmi-providers-b74d51dd10dbd872a6a23c98a4ae5ea503ee1699.tar.gz openlmi-providers-b74d51dd10dbd872a6a23c98a4ae5ea503ee1699.tar.xz openlmi-providers-b74d51dd10dbd872a6a23c98a4ae5ea503ee1699.zip |
realmd: remove unused function octetstring_parse
This function was not used and contained some potential issues so it's
better to get rid of it.
Diffstat (limited to 'src/realmd')
-rw-r--r-- | src/realmd/rdcp_util.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/realmd/rdcp_util.h b/src/realmd/rdcp_util.h index be5d2bb..fb7dc85 100644 --- a/src/realmd/rdcp_util.h +++ b/src/realmd/rdcp_util.h @@ -33,44 +33,6 @@ const ConfigEntry *provider_config_defaults; } \ } -/** - * octetstring_parse - * @octetstring Pointer to octetstring data - * @data_len_return Pointer to uint32 value which receives the number - * of octets in the octetstring buffer. - * - * Given an octetstring, extract it's length and set the pointer to - * the data. - * - * When specified on elements of type array of uint8, the OctetString - * qualifier indicates that the entire array represents a single octet - * string. The first four array entries shall represent a length - * field, and any subsequent entries shall represent the octets in the - * octet string. The four uint8 values in the length field shall be - * interpreted as a 32-bit unsigned number where the first array entry - * is the most significant byte. The number represented by the length - * field shall be the number of octets in the octet string plus - * four. For example, the empty octet string is represented as { 0x00, - * 0x00, 0x00, 0x04 }. - - * - */ - -KINLINE unsigned char *octetstring_parse(unsigned char *octetstring, CMPIUint32 *data_len) -{ - unsigned char *data = NULL; - *data_len = 0; - if (octetstring) { - *data_len = (octetstring[0] << 24) | - (octetstring[1] << 16) | - (octetstring[2] << 8) | - (octetstring[3]); - *data_len -= 4; - data = octetstring + 4; - } - return data; -} - #define LMI_InitRealmdServiceKeys(klass, obj, name_space, host_name) \ { \ klass##_Init(obj, _cb, name_space); \ |