BID-coding an encapsulate

Björn Döbel doebel at os.inf.tu-dresden.de
Thu Jan 24 11:52:10 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

| | 1st - why do you build as root?
|
| Owh, I didn't realize it could affect me more of this privilege.

There is no need to build as root and it's usually security risk.

| | Ok. So aes_aes256_init is a function defined by your wrapper library? In
| this case you should also link your wrapper lib to your application.
| This can be done by adding
|
| | LIBS += -laesclient
|
| | to the example client's Makefile.
|
| I did this, but still no clue :(
| I attach the archive, thank you.

Ok, builds for me after some fixes:

* your package dir is called aes, so all include files need to be
included through something like <l4/aes/...>
* the IDL file somehow needs to know about your aes_context type, so
either include it from a header or define it inside the IDL file - I did
so by uncommenting your stuff.

And this was probably your problem:
- --->
* The aes-client.h file should be included using
~      #include "aes-client.h"
~  without any directory prefixes. It is a generated header file which
~  does not end up in the L4 include dir, but resides inside the
~  package's IDL build dir. This is path is different from the usual
~  include paths and is added to your compile run automatically by BID.
<---

Regards,
Bjoern

- --
Dipl.-Inf. Bjoern Doebel    Mail: doebel at tudos.org
TU Dresden, OS Chair        Phone: +49 351 463 38 799
Noethnitzer Str. 46         Fax:   +49 351 463 38 284
01187 Dresden, Germany
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHmG3aP5ijxgQLUNkRApYXAJ0TMW3ic1bPGVp7UAFRF1QrV0MiagCeJVs/
GZhEKQfn0Eqt60XTaOVCEIU=
=keed
-----END PGP SIGNATURE-----




More information about the l4-hackers mailing list