ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

libssh2 - Compilation issue on IBMi -_libssh2_ec_key

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • libssh2 - Compilation issue on IBMi -_libssh2_ec_key

    Hello,

    When compiling libssh2 onto a V7R3M0 box, we receive a compilation error.
    CZM1003: /git/libssh2/src/libssh2_priv.h, 286.5: CZM0046(30) Syntax error.
    CZS0601: Module OS400SYS is not created because statement errors occurred.
    Code:
       275       !typedef struct key_exchange_state_low_t                                                           !  21678     1
       276       !{                                                                                                 !  21679     1
       277       !    libssh2_nonblocking_states state;                                                             !  21680     1
       278       !    packet_require_state_t req_state;                                                             !  21681     1
       279       !    kmdhgGPshakex_state_t exchange_state;                                                         !  21682     1
       280       !    _libssh2_bn *p;             /* SSH2 defined value (p_value) */                                !  21683     1
       281       !    _libssh2_bn *g;             /* SSH2 defined value (2) */                                      !  21684     1
       282       !    unsigned char request[256]; /* Must fit EC_MAX_POINT_LEN + data */                            !  21685     1
       283       !    unsigned char *data;                                                                          !  21686     1
       284       !    size_t request_len;                                                                           !  21687     1
       285       !    size_t data_len;                                                                              !  21688     1
    [COLOR=#FF0000]   286       !    _libssh2_ec_key *private_key;   /* SSH2 ecdh private key */                                   !  21689     1
     ===========> ....a.............................................................................................
     *=SEVERE==========> a - CZM0046  Syntax error.[/COLOR]
       287       !    unsigned char *public_key_oct;  /* SSH2 ecdh public key octal value */                        !  21690     1
       288       !    size_t public_key_oct_len;      /* SSH2 ecdh public key octal value                           !  21691     1
       289       !                                       length */                                                  !  21692     1
       290       !    unsigned char *curve25519_public_key; /* curve25519 public key, 32                            !  21693     1
       291       !                                             bytes */                                             !  21694     1
       292       !    unsigned char *curve25519_private_key; /* curve25519 private key, 32                          !  21695     1
       293       !                                              bytes */                                            !  21696     1
       294       !} key_exchange_state_low_t;                                                                       !  21697     1
    Googling lead me to that same issue being reported on the libssh2 github repo (https://github.com/libssh2/libssh2/issues/298).
    But, the issue was not resloved and the advise did not work.

    Request:
    Please assist me with compiling libssh2

  • #2
    It says that there is an error in that line of code. You'll need to investigate the source code to find out why there's an error.

    Not sure how you're expecting us to help??

    Comment

    Working...
    X