Read-Only Related Mirrors
  1. Read-Only Related Mirrors

Github-rtrlib

Public
AuthorCommitMessageCommit dateIssues
Nils BarsGitHubNils Bars
c7d58ab5181Bugfix: Use the actual struct size and not the pointer size (#288)
maurimMatthias Wählischmaurim
52b2d660496Updates the used public rpki-caches for testing environmentMotivation - get pipeline checks running How: - find valid rpki-cache which runs also rtr - edit url in live_tests
Zopolis4Marcel RöthkeZopolis4
e3f6bf625bflib: Restrict overmatching MACH ifdef to only trigger on OSX and Mach
Olivier Cochard-LabbéMarcel RöthkeOlivier Cochard-Labbé
1a2a042ca65Fix LIBSSH_ variable names
Marcel RöthkeMatthias WaehlischMarcel Röthke
41f5f057d47rtr_mgr: replace mutex with rwlockrtr_mgr could enter a deadlocked state with multiple socket groups when a group with at least one group of lower preference comes back online. This happens because the thread of the group coming back online blocks on trying to shut down all threads with lower preference while holding the rtr_mgrs mutex, but a thread that tries to acquire that same mutex cannot be shut down while doing so. Sinc...
Martin WinterMarcel RöthkeMartin Winter
d80baaf0cffredhat: Fix RPM file to work on Fedora 33+ and RedHat 9+- Newer Fedora/RedHat changes cmake rpm build to build out of tree and requires the use of macros for correct locations See https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds - On newer Fedora, the SOURCES subdirectory isn't created automatically and needs to be created in the prep phase before the tar is created Signed-off-by: Martin Winter <mwinter@opensourcerout...
Marcel RöthkeGitHubMarcel Röthke
179e7efb595rtrlib/rtr_mgr: properly cleanup rtr_sockets on stop (#268)Previously rtr_sockets could not be restarted because their state remained on SHUTDOWN, which they can, by design, not recover from themselves.
Colin SamesMarcel RöthkeColin Sames
474ea3814afbgpsec: CONFIG_H -> RTR_CONFIG_H
Colin SamesMarcel RöthkeColin Sames
f822fd98ac3redhat: add libssl as a dependency.BGPsec requires libssl as a dependency.
Colin SamesMarcel RöthkeColin Sames
ebee20f24a0debian: add libssl dependencies.BGPsec requires OpenSSL.
Colin SamesMarcel RöthkeColin Sames
8d95a54a8bftests: Add integration and unit tests for BGPsec.The integration tests cover: - originating a BGPsec path - signing a BGPsec path - validating a BGPsec path - getting BGPsec version and algorithm suite values The unit tests cover: - allocator and initializer functions - utility functions
Colin SamesMarcel RöthkeColin Sames
264a854f39ertrlib/bgpsec: Add BGPsec validation features.- The BGPsec API allows to validate and sign BGPsec paths. - Currently supported BGPsec version is 0. - For cryptographic operations, OpenSSL is used. Both version 1.0 and 1.1 are supported. - The router keys necessary for validation are fetched from the SPKI.
Matthias WählischGitHubMatthias Wählisch
b8b99100c9fadd SECURITY.md (#266)
Marcel RöthkeMarcel Röthke
d05a0b6ae8frelease 0.8.0
Marcel RöthkeMarcel Röthke
b3bcfeba7b6rtrlib/transport/ssh: return correct error valuesSome functions returned SSH_* error values, instead of TR_* error values
Marcel RöthkeMarcel Röthke
65cdd1e3a95rtrlib/transport/ssh: check for all relevant return values of ssh_channel_selectssh_channel_select can return SSH_EINTR, SSH_ERROR and SSH_OK. Handle SSH_EINTR and SSH_ERROR accordingly and continue for SSH_OK.
Marcel RöthkeMarcel Röthke
e1f938d7cd2rtrlib/transport/ssh: fix constant spinning on recvThe timeout in the tr_ssh_recv implementation was hard coded to 1 second, instead of using the provided timeout.
Marcel RöthkeMarcel Röthke
1f8a5ddcdb5rtrlib/transport/ssh: fix deprication warninglibssh has deprecated ssh_is_known_server, ssh_session_is_known_server should be used instead. It is available since version 0.8.0, we will use it if available.
Marcel RöthkeMarcel Röthke
6f719b869bfrtrlib/transport/ssh: check malloc return values in init
Marcel RöthkeMarcel Röthke
e3ce4121431rtrlib/transport/ssh: remove stray semicolon
Marcel RöthkeMarcel Röthke
1dfbd22b0d5rtrlib/transport/ssh: ensure private key or password is setIt does not make much sense to set both in non interactive authentication, but one of them has to be set.
Marcel RöthkeMarcel Röthke
5ba114366dbtools/rtrclient: implement ssh password auth
Marcel RöthkeMarcel Röthke
d3da6a14f74rtrlib/transport/ssh: add support for password authentication
Marcel RöthkeMarcel Röthke
f2a38c5946ertrlib/transport/ssh: fix log prefix in tr_ssh_open
Marcel RöthkeMarcel Röthke
56e67e78059cmake: use FindPkgConfig to search for libssh availabilityPreviously a homegrown find script was used. That made assumptions about location of some header files that do not hold true anymore for recent libssh versions. The canonical why of finding libraries is pkg-config and cmake has excellent support for that. So we simply use it.
Matthias WählischGitHubMatthias Wählisch
93724e4fb3cadd badges to README.md and ref to CONTRIBUTING (#261)* add badges to README.md * add ref to CONTRIBUTING.md in README.md
Marcel RöthkeMarcel Röthke
a6175bb0947rtrlib/transport: make connect timeout configurable
Marcel RöthkeMarcel Röthke
cc95e0c43a4rtrlib/transport/{tcp,ssh}: fix tr_{tcp,ssh}_open blocking socket stopSince the move from pthread_kill to pthread_cancel a rtr_socket could not be stopped immediately if it was in the tr_open call. cancelability could not be enabled for that function because it holds local resources. This enables cancalability locally for the only blocking call in tr_tcp_open and tr_ssh_open respectively.
Marcel RöthkeMarcel Röthke
f5cfe3176b3tests: fix warning about discarded qualifier in live validation test
Colin SamesMarcel RöthkeColin Sames
4a608734dfertrlib/transport/tcp: add extended errno outputtr_tcp_open outputs the error with strerror instead of gai_strerror in case an EAI_SYSTEM error code is received.
Philippe GuibertMarcel RöthkePhilippe Guibert
03f6894794dtools: fix covery issue related to tr_[tcp,ssh]_config initialisationthe structures tr_tcp_config and tr_ssh_config were not set to 0 at startup, when init_sockets() call is done. handle this by initialising those structures. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe GuibertMarcel RöthkePhilippe Guibert
967fe6f6d42rtrlib: ability to pass configured socket in tcp/ssh attributeThanks to previous commit, it becomes possible by the caller to add an an optional opaque pointer, as well as a callback function that will be in charge of providing a file descriptor that will be used to create the tcp/ssh connection to the server. If the information is provided, and if the socket returned is invalid (<=0), then a fallback mechanism is done, that is to say that the socket is c...
Philippe GuibertMarcel RöthkePhilippe Guibert
e563574c2ef*: add two attributes to [tcp/ssh]_config structurethose two attributes will be further used to store an opaque pointer, as well as a callback function. it will be up to the user of the API to use those fields to provide a socket that will be used for rpki transportation for communication with servers. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Martin WinterMartin Winter
05af8c7cbaaredhat: Add new changelog entry to fix rpmlint changelog errorSigned-off-by: Martin Winter <mwinter@opensourcerouting.org>
Jakob OttoMatthias WählischJakob Otto
09b5c4923ebRename README to README.md (#253)* Rename README to README.md * Cleanup Formatting of README.md
Philippe GuibertPhilippe Guibert
4828e6c0490*: fix warnings of compilation with gcc 5.4some warnings are removed by adding some tiny modifications in the code. third party files are omitted in the warnings fix. also there is a warning in travis when braces are put around fgets(){} call, whereas the warning had disappeared with gcc 5.4. decision is to keep gcc warning for this case, so that travis does not warn. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Marcel RöthkeSebastian MeilingMarcel Röthke
1b52b5ca920add git blame ignore listThis adds a ignore list for git blame. It contains commits that reformatted large portions of the code without adding any features or fixing bugs. This aims to make git-blame more readable. It can be used with git 2.23 or newer in the following way: git blame --ignore-revs-file .git-blame-ignore $file
Marcel RöthkeSebastian MeilingMarcel Röthke
3b175530763fix various spelling errors throughout the project
Marcel RöthkeSebastian MeilingMarcel Röthke
652f0d37792Ensure all relevant source files pass checkpatch
Marcel RöthkeSebastian MeilingMarcel Röthke
bebe573cd20scripts: update checkpatch IGNORE list
Marcel RöthkeSebastian MeilingMarcel Röthke
af89075e50dscripts: rewrite check-coding-style.sh to check all relevant c and h filesRelevant are all files in the rtrlib, tools and tests subdirectories
Marcel RöthkeSebastian MeilingMarcel Röthke
f64ba36b594Add .clang-formatBased the on .clang-format from the frr project
Marcel RöthkeSebastian MeilingMarcel Röthke
08c050601b2tools: fix build error with mustachmustach relies on transitive includes to work, this introduces a wrapping header that satisfies these
Marcel RöthkeSebastian MeilingMarcel Röthke
babdd7a4729reformat whole codebase with clang-formatDone with `clang-format -i -verbose -style=file {rtrlib,tools,tests}/**/*.[ch]`
Marcel RöthkeSebastian MeilingMarcel Röthke
c3c10be7663tests: fix transitive includes
Marcel RöthkeSebastian MeilingMarcel Röthke
dc8ee3c9671tests: manually sort cmocka include and disable clang it from clang-formatThe cmocka header relies on transitive includes to work, the include order must not be changed.
Sebastian MeilingSebastian Meiling
b0a7111a561update to 0.7.0
Sebastian MeilingSebastian Meiling
b3bfd84147ctools: generate template.h in build folderThe template.h is generated when building the rtr tools. The resulting file is now create in the build and not the source directory. This avoids that template.h shows up in `git status` and also that someone might commit the file in to the repo by accident.
Marcel RöthkeSebastian MeilingMarcel Röthke
4536bb0c5cctools/rtrclient: print newline after error
Marcel RöthkeSebastian MeilingMarcel Röthke
760ad7cfb67tools/rtrclient: make status update printing optional