All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] cryptsetup build question
@ 2012-07-02 14:37 Simpson, John R
  2012-07-02 17:08 ` Simpson, John R
  0 siblings, 1 reply; 3+ messages in thread
From: Simpson, John R @ 2012-07-02 14:37 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

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 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 build system of the newer versions looks similar.

    Can anyone tell me where to add my files so that they'll be compiled and linked into the cryptsetup library?

Best regards,

John

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

John Simpson


[-- Attachment #2: Type: text/html, Size: 3760 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dm-crypt] cryptsetup build question
  2012-07-02 14:37 [dm-crypt] cryptsetup build question Simpson, John R
@ 2012-07-02 17:08 ` Simpson, John R
  2012-07-03 20:17   ` Milan Broz
  0 siblings, 1 reply; 3+ messages in thread
From: Simpson, John R @ 2012-07-02 17:08 UTC (permalink / raw)
  To: Simpson, John R, dm-crypt

[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]

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 Behalf 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 cryptsetup.  The code works, 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 build system of the newer versions looks similar.

    Can anyone tell me where to add my files so that they'll be compiled and linked into the cryptsetup library?

Best regards,

John

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

John Simpson


[-- Attachment #2: Type: text/html, Size: 9256 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dm-crypt] cryptsetup build question
  2012-07-02 17:08 ` Simpson, John R
@ 2012-07-03 20:17   ` Milan Broz
  0 siblings, 0 replies; 3+ messages in thread
From: Milan Broz @ 2012-07-03 20:17 UTC (permalink / raw)
  To: Simpson, John R; +Cc: dm-crypt

On 07/02/2012 07:08 PM, Simpson, John R wrote:
> I believe I’ve 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’ve 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-03 20:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-02 14:37 [dm-crypt] cryptsetup build question Simpson, John R
2012-07-02 17:08 ` Simpson, John R
2012-07-03 20:17   ` Milan Broz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.