From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bWlZAaQqf3mu for ; Mon, 2 Jul 2012 16:46:53 +0200 (CEST) Received: from dayis01iron01.ad.reyrey.com (dayis01iron01.reyrey.com [192.112.245.69]) by mail.saout.de (Postfix) with ESMTP for ; Mon, 2 Jul 2012 16:46:53 +0200 (CEST) From: "Simpson, John R" Date: Mon, 2 Jul 2012 10:37:03 -0400 Message-ID: <67C1678059C61F408194E53907AFB5CC0ABC3B3061@IS-EXMB01-RP.ad.reyrey.com> Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_67C1678059C61F408194E53907AFB5CC0ABC3B3061ISEXMB01RPadr_" MIME-Version: 1.0 Subject: [dm-crypt] cryptsetup build question List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" --_000_67C1678059C61F408194E53907AFB5CC0ABC3B3061ISEXMB01RPadr_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings all, I've been tasked with adding support for a local passphrase system to c= ryptsetup. The code works, but I'm having trouble determining where to add= my C and header file to the cryptsetup build files (configure, configure.i= n, Makefile.in, Makefile.am, etc.). My module needs to be compiled and lin= ked in the same way that lib/setup.c, lib/utils.c, etc. are compiled and li= nked. We're using cryptsetup 1.0.3 since our platform is RHEL 5, but the b= uild system of the newer versions looks similar. Can anyone tell me where to add my files so that they'll be compiled an= d linked into the cryptsetup library? Best regards, John p.s. Keep up the good work. Even the relatively ancient version of cryptse= tup on RHEL 5 outperformed TrueCrypt in our environment. John Simpson --_000_67C1678059C61F408194E53907AFB5CC0ABC3B3061ISEXMB01RPadr_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Greetings all,

<= p class=3DMsoNormal><= o:p> 

    I’ve been tasked with a= dding support for a local passphrase system to cryptsetup.  The code w= orks, but I’m having trouble determining where to add my C and header= file to the cryptsetup build files (configure, configure.in, Makefile.in, = Makefile.am, etc.).  My module needs to be compiled and linked in the = same way that lib/setup.c, lib/utils.c, etc. are compiled and linked. = We’re using cryptsetup 1.0.3 since our platform is RHEL 5, but the b= uild system of the newer versions looks similar.

=  

    Can anyone tell me where to add m= y files so that they’ll be compiled and linked into the cryptsetup li= brary? 

 

Best regards= ,

 

John

p.s. Keep up the good work.  Even the re= latively ancient version of cryptsetup on RHEL 5 outperformed TrueCrypt in = our environment.

 

John Simpson=

 

= --_000_67C1678059C61F408194E53907AFB5CC0ABC3B3061ISEXMB01RPadr_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V75Q2pvDDyar for ; Mon, 2 Jul 2012 19:09:02 +0200 (CEST) Received: from dayis01iron01.ad.reyrey.com (dayis01iron01.reyrey.com [192.112.245.69]) by mail.saout.de (Postfix) with ESMTP for ; Mon, 2 Jul 2012 19:09:01 +0200 (CEST) From: "Simpson, John R" Date: Mon, 2 Jul 2012 13:08:55 -0400 Message-ID: <57f586e1-bd02-4bed-82e1-0db64a280282@IS-EXHC02-RP.ad.reyrey.com> References: <67C1678059C61F408194E53907AFB5CC0ABC3B3061@IS-EXMB01-RP.ad.reyrey.com> In-Reply-To: <67C1678059C61F408194E53907AFB5CC0ABC3B3061@IS-EXMB01-RP.ad.reyrey.com> Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_57f586e1bd024bed82e10db64a280282ISEXHC02RPadreyreycom_" MIME-Version: 1.0 Subject: Re: [dm-crypt] cryptsetup build question List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Simpson, John R" , "dm-crypt@saout.de" --_000_57f586e1bd024bed82e10db64a280282ISEXHC02RPadreyreycom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I believe I've answered my own question. lib/Makefile.am: libcryptsetup_la_SOURCES lib/Makefile.in: libcryptsetup_la_SOURCES am__libcryptsetup_la_SOURCES_DIST am_libcryptsetup_la_OBJECTS Thanks, John John Simpson From: dm-crypt-bounces@saout.de [mailto:dm-crypt-bounces@saout.de] On Behal= f Of Simpson, John R Sent: Monday, July 02, 2012 10:37 AM To: dm-crypt@saout.de Subject: [dm-crypt] cryptsetup build question Greetings all, I've been tasked with adding support for a local passphrase system to c= ryptsetup. The code works, but I'm having trouble determining where to add= my C and header file to the cryptsetup build files (configure, configure.i= n, Makefile.in, Makefile.am, etc.). My module needs to be compiled and lin= ked in the same way that lib/setup.c, lib/utils.c, etc. are compiled and li= nked. We're using cryptsetup 1.0.3 since our platform is RHEL 5, but the b= uild system of the newer versions looks similar. Can anyone tell me where to add my files so that they'll be compiled an= d linked into the cryptsetup library? Best regards, John p.s. Keep up the good work. Even the relatively ancient version of cryptse= tup on RHEL 5 outperformed TrueCrypt in our environment. John Simpson --_000_57f586e1bd024bed82e10db64a280282ISEXHC02RPadreyreycom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I believe I’ve an= swered my own question.

 

lib/Makefile.am:

            libcr= yptsetup_la_SOURCES

 <= /span>

lib/Makefile.in:

            libcryp= tsetup_la_SOURCES

am__libcryptsetup_la_SOURCES_DIST

am_libcryptsetup_la_OBJECTS

=

 

Thanks,

 =

John

John Simpson

<= /div>

 

From: dm-crypt-bounces@saout.de [mailto:dm-crypt-bounces@saout.de] = On Behalf Of Simpson, John R
Sent: Monday, July 02, 2012 10:3= 7 AM
To: dm-crypt@saout.de
Subject: [dm-crypt] cryptset= up build question

 

Greetings all,

=  

    I’ve been tasked with adding support for a = local passphrase system to cryptsetup.  The code works, but I’m = having trouble determining where to add my C and header file to the cryptse= tup build files (configure, configure.in, Makefile.in, Makefile.am, etc.).&= nbsp; My module needs to be compiled and linked in the same way that lib/se= tup.c, lib/utils.c, etc. are compiled and linked.  We’re using c= ryptsetup 1.0.3 since our platform is RHEL 5, but the build system of the n= ewer versions looks similar.

 <= /p>

 

Best regards,<= /p>

John

 <= /span>

p.s. Keep up the good work.  Even the relatively ancient ver= sion of cryptsetup on RHEL 5 outperformed TrueCrypt in our environment.

 

John Simpson

 

= --_000_57f586e1bd024bed82e10db64a280282ISEXHC02RPadreyreycom_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n_W4iMh2tMLV for ; Tue, 3 Jul 2012 22:17:19 +0200 (CEST) Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Tue, 3 Jul 2012 22:17:19 +0200 (CEST) Received: by wgbdr13 with SMTP id dr13so6654718wgb.1 for ; Tue, 03 Jul 2012 13:17:19 -0700 (PDT) Message-ID: <4FF3534C.1000109@gmail.com> Date: Tue, 03 Jul 2012 22:17:16 +0200 From: Milan Broz MIME-Version: 1.0 References: <67C1678059C61F408194E53907AFB5CC0ABC3B3061@IS-EXMB01-RP.ad.reyrey.com> <57f586e1-bd02-4bed-82e1-0db64a280282@IS-EXHC02-RP.ad.reyrey.com> In-Reply-To: <57f586e1-bd02-4bed-82e1-0db64a280282@IS-EXHC02-RP.ad.reyrey.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] cryptsetup build question List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Simpson, John R" Cc: "dm-crypt@saout.de" On 07/02/2012 07:08 PM, Simpson, John R wrote: > I believe I=92ve answered my own question. Well, you should never link to these internal things. But, in RHEL5 there is old cryptsetup 1.0.3 and shared library is quite problematic to use. Anyway, please be sure you are using cryptsetup from RHEL 5.8, (cryptsetup-luks-1.0.3-8) there were important fixes. For RHEL6 and upwards, you should be able to use libcryptsetup as normal shared library. You can find some examples here http://wiki.cryptsetup.googlecode.com/git/API/index.html > I=92ve been tasked with adding support for a local passphrase system to > cryptsetup. Hm. What it means? (And isn't simple binary wrapper/script simpler?) Milan