[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8603) [PATCH] adds ldif_open_mem()

Full_Name: Brett Sheffield
Version: master
OS: Gentoo GNU/Linux
URL: http://www.brettsheffield.com/patches/openldap/brett-sheffield-170220-ldif_open_mem.patch
Submission from: (NULL) (2001:470:6e0d:0:96de:80ff:fe2d:3aa9)

Patch[0] to add ldif_open_mem() function to ldif API.

ldif_open_mem() is the fmemopen(3) equivalent of ldif_open() which opens
an ldif steam from memory, rather than from a file.

I originally added a similar function to my project libgladdb in 2014[1], but it
really belongs in openldap itself as it is generally useful.

The attached modifications to OpenLDAP Software are subject to the following

Copyright 2014, 2017 Brett Sheffield
Redistribution and use in source and binary forms, with or without modification,
are permitted only as authorized by the OpenLDAP Public License. 

[0] http://www.brettsheffield.com/patches/openldap/brett-sheffield-170220-ldif_open_mem.patch
[1] https://github.com/brettsheffield/gladdb/blob/master/src/ldif.c