Skip to content

Commit 85666fb

Browse files
authored
Merge pull request #117 from oracle/cel-fixes
Address the ENOPKG returns from add_key(2)
2 parents 59ecb97 + 0484520 commit 85666fb

File tree

3 files changed

+36
-8
lines changed

3 files changed

+36
-8
lines changed

README

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,24 @@ this package is released.
1515

1616
## Dependencies
1717

18-
* The local kernel must have net/handshake support and be built with
19-
CONFIG_TLS enabled
20-
* The local build environment requires GnuTLS and keyutils
18+
### Run-time dependencies
19+
20+
The kernel must have net/handshake support (v6.5 or later) and be
21+
built with the following CONFIG options enabled:
22+
23+
* CONFIG_TLS
24+
* CONFIG_KEYS
25+
* CONFIG_KEYS_REQUEST_CACHE
26+
27+
### Build dependencies
28+
29+
The build environment requires the development packages for the
30+
following libraries to be installed:
31+
32+
* GnuTLS
33+
* keyutils
34+
* GLib-2.0
35+
* libnl3
2136

2237
## Installation
2338

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,24 @@ this package is released.
1515

1616
## Dependencies
1717

18-
* The local kernel must have net/handshake support and be built with
19-
CONFIG_TLS enabled
20-
* The local build environment requires GnuTLS and keyutils
18+
### Run-time dependencies
19+
20+
The kernel must have net/handshake support (v6.5 or later) and be
21+
built with the following CONFIG options enabled:
22+
23+
* CONFIG_TLS
24+
* CONFIG_KEYS
25+
* CONFIG_KEYS_REQUEST_CACHE
26+
27+
### Build dependencies
28+
29+
The build environment requires the development packages for the
30+
following libraries to be installed:
31+
32+
* GnuTLS
33+
* keyutils
34+
* GLib-2.0
35+
* libnl3
2136

2237
## Installation
2338

src/tlshd/server.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@ static int tlshd_server_x509_verify_function(gnutls_session_t session,
224224
return GNUTLS_E_CERTIFICATE_ERROR;
225225
}
226226
peerid = tlshd_keyring_create_cert(cert, parms->peername);
227-
if (peerid == TLS_NO_PEERID)
228-
peerid = UINT_MAX;
229227
g_array_append_val(parms->remote_peerids, peerid);
230228
gnutls_x509_crt_deinit(cert);
231229
}

0 commit comments

Comments
 (0)