[Swan-commit] Changes to ref refs/heads/master

D. Hugh Redelmeier hugh at vault.libreswan.fi
Tue Sep 3 15:29:36 UTC 2019


New commits:
commit f69269add8a4793be8c9156fab5721fb9884368f
Author: D. Hugh Redelmeier <hugh at mimosa.com>
Date:   Tue Sep 3 11:26:24 2019 -0400

    pervasive: fix calls to idtoa() and dntoa() to use sizeof
    
    - "idtoa(a, abuf, IDTOA_BUF)" => "idtoa(a, abuf, sizeof(abuf));"
      This is correct, even if the size of abuf changes.
      This way the size is specified only one place.
    
    - Several calls to dntoa used a buffer of size IDTOA_BUF.
      Change them to use the correct size, ASN1_BUF_LEN.

commit dff4b0a025d662349fb89fda64779780223a4f85
Author: D. Hugh Redelmeier <hugh at mimosa.com>
Date:   Tue Sep 3 11:00:17 2019 -0400

    libswan: x509dn.c: tidy dntoa and friends
    
    - return value of dntoa(), dntoa_or_null() is always ignored so eliminate it.
    
    - remodularize dntoa() and dntoa_or_null() to simplify:
      dntoa now calls dntoa_or_null rather than the reverse.
    
    - rename "dn_parse" to "format_dn" since it converts a DN
      from ASN.1 form to ASCII.  The old name was quite confusing.
    
    - simplify format_chunk()
    
    - random tidying

commit 0003fd15122c9c384cdc4bbe9c967022c04a3846
Author: D. Hugh Redelmeier <hugh at mimosa.com>
Date:   Tue Sep 3 10:55:13 2019 -0400

    libswan/x509dn.c: dn_parse() closer to its only caller



More information about the Swan-commit mailing list