فهرست منبع

move LTC_SSHDATA_EOL to the beginning of the enum

If there's an EOL at the end of the enum I'm tempted to add new entries
before that one and then this will break the ABI which I don't like.
Steffen Jaeckel 6 سال پیش
والد
کامیت
26dc2766bd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/headers/tomcrypt_misc.h

+ 1 - 1
src/headers/tomcrypt_misc.h

@@ -163,6 +163,7 @@ int padding_depad(const unsigned char *data, unsigned long *length, unsigned lon
 
 
 #ifdef LTC_SSH
 #ifdef LTC_SSH
 typedef enum ssh_data_type_ {
 typedef enum ssh_data_type_ {
+   LTC_SSHDATA_EOL,
    LTC_SSHDATA_BYTE,
    LTC_SSHDATA_BYTE,
    LTC_SSHDATA_BOOLEAN,
    LTC_SSHDATA_BOOLEAN,
    LTC_SSHDATA_UINT32,
    LTC_SSHDATA_UINT32,
@@ -170,7 +171,6 @@ typedef enum ssh_data_type_ {
    LTC_SSHDATA_STRING,
    LTC_SSHDATA_STRING,
    LTC_SSHDATA_MPINT,
    LTC_SSHDATA_MPINT,
    LTC_SSHDATA_NAMELIST,
    LTC_SSHDATA_NAMELIST,
-   LTC_SSHDATA_EOL
 } ssh_data_type;
 } ssh_data_type;
 
 
 /* VA list handy helpers with tuples of <type, data> */
 /* VA list handy helpers with tuples of <type, data> */