Bonjour,

J'ai une distribution Ubuntu 14.04 Desktop 64 bits,

J'essaie de créer une nouvelle extension TLS en utilisant GNUTLS, pour faire les modifications nécessaires, j'ai suivit ce tuto. Quand je fais ./configure --enable-monExtension, il n y a aucune erreur, et voici ce qui s'affiche :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[..............]
 
  version:              3.1.23 shared 49:3:21
  Host/Target system:   x86_64-unknown-linux-gnu
  Build system:         x86_64-unknown-linux-gnu
  Install prefix:       /usr/local
  Compiler:             gcc -std=gnu99
  CFlags:               -g -O2
  Library types:        Shared=yes, Static=yes
 
configure: External hardware support:
 
  /dev/crypto:          no
  Hardware accel:       x86-64
  PKCS#11 support:      yes
  TPM support:          no
 
configure: Optional features:
(note that included applications might not compile properly
if features are disabled)
 
  DTLS-SRTP support:    yes
  OCSP support:         yes
  OpenPGP support:      yes
  SRP support:          yes
  PSK support:          yes
  DHE support:          yes
  ECDHE support:        yes
  RSA-EXPORT support:   yes
  Anon auth support:    yes
  Heartbeat support:    yes
 
configure: Optional applications:
 
  crywrap app:          yes
  local libopts:        no
  local libtasn1:       no
 
configure: Optional libraries:
 
  Guile wrappers:       yes
  C++ library:          yes
  DANE library:         no
  OpenSSL compat:       yes
 
configure: System files:
 
  Trust store pkcs:    
  Trust store file:     /etc/ssl/certs/ca-certificates.crt
  Blacklist file:      
  CRL file:            
  DNSSEC root key file: /etc/unbound/root.key
Par contre quand j’exécute avec "make", voici ce que j'obtiens :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
./../gnutls_datum.h:26:24: error: unknown type name 'gnutls_datum_t'
 int _gnutls_set_datum (gnutls_datum_t * dat, const void *data,
                        ^
./../gnutls_datum.h:27:26: error: unknown type name 'size_t'
                          size_t data_size);
                          ^
./../gnutls_datum.h:29:27: error: unknown type name 'gnutls_datum_t'
 int _gnutls_datum_append (gnutls_datum_t * dat, const void *data,
                           ^
./../gnutls_datum.h:30:29: error: unknown type name 'size_t'
                             size_t data_size);
                             ^
./../gnutls_datum.h:32:26: error: unknown type name 'gnutls_datum_t'
 void _gnutls_free_datum (gnutls_datum_t * dat);
                          ^
In file included from ./../gnutls_extensions.h:26:0,
                 from ./../ext/tlsotp.h:4,
                 from ./../gnutls_int.h:30,
                 from common.c:23:
./../gnutls_str.h:38:3: error: unknown type name 'uint8_t'
   uint8_t *allocd;               /* pointer to allocated data */
   ^
./../gnutls_str.h:39:3: error: unknown type name 'uint8_t'
   uint8_t *data;                 /* API: pointer to data to copy from */
   ^
 
....etc [....................]
aussi du genre :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
./../gnutls_extensions.h:63:43: error: unknown type name 'gnutls_session_t'
 void _gnutls_ext_restore_resumed_session (gnutls_session_t session);
                                           ^
./../gnutls_extensions.h:64:34: error: unknown type name 'gnutls_session_t'
 int _gnutls_ext_after_handshake (gnutls_session_t session);
                                  ^
./../gnutls_extensions.h:67:23: error: unknown type name 'gnutls_session_t'
 int _gnutls_ext_pack (gnutls_session_t session, gnutls_buffer_st * packed);
                       ^
./../gnutls_extensions.h:68:25: error: unknown type name 'gnutls_session_t'
 int _gnutls_ext_unpack (gnutls_session_t session, gnutls_buffer_st * packed);
                         ^
./../gnutls_extensions.h:73:3: error: unknown type name 'uint16_t'
   uint16_t type;
   ^
./../gnutls_extensions.h:74:3: error: unknown type name 'gnutls_ext_parse_type_t'
   gnutls_ext_parse_type_t parse_type;
   ^
./../gnutls_extensions.h:80:3: error: unknown type name 'gnutls_ext_recv_func'
   gnutls_ext_recv_func recv_func;
   ^
./../gnutls_extensions.h:87:3: error: unknown type name 'gnutls_ext_send_func'
   gnutls_ext_send_func send_func;
   ^
./../gnutls_extensions.h:89:3: error: unknown type name 'gnutls_ext_deinit_data_func'
   gnutls_ext_deinit_data_func deinit_func;      /* this will be called to deinitialize
   ^
./../gnutls_extensions.h:92:3: error: unknown type name 'gnutls_ext_pack_func'
   gnutls_ext_pack_func pack_func;       /* packs internal data to machine independent format */
   ^
./../gnutls_extensions.h:93:3: error: unknown type name 'gnutls_ext_unpack_func'
   gnutls_ext_unpack_func unpack_func;   /* unpacks internal data */
 
[........................]
S'il vous plaît si vous avez une explication, même si elle est pas correcte n'hésitez pas à l'écrire. Je vous serais reconnaissant.