Project

General

Profile

Feature #2610

optimize GnuTLS fallback

Added by msuraev 17 days ago.

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

0%

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 patches Stalled 04/22/2016

History

#1 Updated by msuraev 17 days ago

  • Related to Bug #1694: integrate debian patches added

Also available in: Atom PDF