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

Andrew Cagney cagney at vault.libreswan.fi
Fri Mar 31 20:42:29 EEST 2023


New commits:
commit bd150a6bfa39377b1126b7996a8a01240ca2b3fd
Author: Andrew Cagney <cagney at gnu.org>
Date:   Fri Mar 31 10:53:19 2023 -0400

    packet: eliminate sole use of pbs_in_remaining()
    
    mindlessly replace it with pbs_in_left().len
    (pbs_in_left() returns a read-only shunk_t)
    
    As an aside, there's a lot of code doing stuff like:
        len = pbs_left(pbs);
        memcpy(dst, pbs->cur, len);
    which could instead use pbs_in_left()->shunk_t.

commit e7de60f824b94e5d85318eb5a5aa1921abcfe545
Author: Andrew Cagney <cagney at gnu.org>
Date:   Fri Mar 31 09:47:44 2023 -0400

    memory: pass a read-only shunk into replace_chunk()
    
    Where chunk is being stolen, shuch as in unpack_nonce()
    make it explict.  Also drop clone_pbs_out_as_chunk().

commit ca705d28552302004a7f58c6bada4417febf634d
Author: Andrew Cagney <cagney at gnu.org>
Date:   Fri Mar 31 10:32:26 2023 -0400

    ikev2: make the plain hunk pointing into the middle of the inbound message RO
    
    i.e., a shunk

commit 99940003c1a653d71dec7d00a5853ea6b3cebd80
Author: Andrew Cagney <cagney at gnu.org>
Date:   Fri Mar 31 10:08:30 2023 -0400

    packets: more pb_stream -> pbs_{in,out} splitting



More information about the Swan-commit mailing list