Project

General

Profile

Feature #2610

optimize GnuTLS fallback

Added by msuraev 8 months ago. Updated about 2 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
11/02/2017
Due date:
% Done:

0%

Estimated time:
Spec Reference:

Description

The osmo_get_rand_id() uses GnuTLS as a fallback in case of getrandom is unavailable or fails.

It's been suggested to use static variable to cache the failure of getrandom and always use GnuTLS fallback after first getrandom failure.

The getrandom calls are compiled-time option and used only if available.

To test this properly we first have to merge osmo_get_rand_id() support into osmo-*, than create test suite which measures the impact of getrandom calls. This requires following:
  • getrandom support is compiled-in (default if available)
  • gnutls fallback is enabled (default unless embedded build is used)
  • getrandom always fails (not sure how to make this happen)

Related issues

Related to libosmocore - Bug #1694: integrate debian patchesResolved2016-04-22

History

#1 Updated by msuraev 8 months ago

  • Related to Bug #1694: integrate debian patches added

#2 Updated by laforge about 2 months ago

  • Priority changed from Normal to Low

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)