Quoting Stéphane Graber (stgra...@ubuntu.com): > On Thu, Jul 11, 2013 at 11:51:25PM -0500, Serge Hallyn wrote: > > Define a sha1sum_file() function in utils.c (which requires configure.ac > > to check for -lcrypto and -lssl). Use that in lxcapi_create to write out > > the sha1sum of the template being used. > > > > Signed-off-by: Serge Hallyn <serge.hal...@ubuntu.com> > > --- > > configure.ac | 2 + > > src/lxc/Makefile.am | 2 +- > > src/lxc/lxccontainer.c | 109 > > ++++++++++++++++++++++++++++++++++++++++++++++-- > > src/lxc/utils.c | 36 ++++++++++++++++ > > src/lxc/utils.h | 2 + > > 5 files changed, 146 insertions(+), 5 deletions(-) > > Does the LXC license allow linking to OpenSSL? > > Specifically we need the following bit in the license: > * In addition, as a special exception, the copyright holders give > * permission to link the code of portions of this program with the > * OpenSSL library under certain conditions as described in each > * individual source file, and distribute linked combinations > * including the two. > * You must obey the GNU General Public License in all respects > * for all of the code used other than OpenSSL. If you modify > * file(s) with this exception, you may extend this exception to your > * version of the file(s), but you are not obligated to do so. If you > * do not wish to do so, delete this exception statement from your > * version. If you delete this exception statement from all source > * files in the program, then also delete it here. > > Details: https://people.gnome.org/~markmc/openssl-and-the-gpl.html
(&$%(*$(%)**(^#($)(*# Ok, so as you suggested in irc (thanks) we could use gnutls. But I also like the idea of just grabbing lib/sha1.c from coreutils (which is under gpl) which is what is used by sha1sum, which we used before in the lxc-create script. It looks like much simpler usage, and less dependencies. Any objections? -serge ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel