Skip to content
  • Daiki Ueno's avatar
    trust: make filesystem path construction flexible · 1c5f0e29
    Daiki Ueno authored
    
    
    To handle pathnames longer than the fixed length (previously 256),
    this adds a set of internal API functions around the gnutls_pathbuf_st
    struct, which enables to safely and efficiently construct pathnames.
    The new API initially uses the statically allocated buffer and starts
    allocating memory on heap only after the limit has reached.
    
    Signed-off-by: Daiki Ueno's avatarDaiki Ueno <ueno@gnu.org>
    1c5f0e29