Author | Commit | Message | Commit date | Issues | |
---|---|---|---|---|---|
Nils Bars | c7d58ab5181 | Bugfix: Use the actual struct size and not the pointer size (#288) | |||
maurim | 52b2d660496 | Updates 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 | |||
Zopolis4 | e3f6bf625bf | lib: Restrict overmatching MACH ifdef to only trigger on OSX and Mach | |||
Olivier Cochard-Labbé | 1a2a042ca65 | Fix LIBSSH_ variable names | |||
Marcel Röthke | 41f5f057d47 | rtr_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 Winter | d80baaf0cff | redhat: 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öthke | 179e7efb595 | rtrlib/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 Sames | 474ea3814af | bgpsec: CONFIG_H -> RTR_CONFIG_H | |||
Colin Sames | f822fd98ac3 | redhat: add libssl as a dependency.BGPsec requires libssl as a dependency. | |||
Colin Sames | ebee20f24a0 | debian: add libssl dependencies.BGPsec requires OpenSSL. | |||
Colin Sames | 8d95a54a8bf | tests: 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 Sames | 264a854f39e | rtrlib/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ählisch | b8b99100c9f | add SECURITY.md (#266) | |||
Marcel Röthke | d05a0b6ae8f | release 0.8.0 | |||
Marcel Röthke | b3bcfeba7b6 | rtrlib/transport/ssh: return correct error valuesSome functions returned SSH_* error values, instead of TR_* error values | |||
Marcel Röthke | 65cdd1e3a95 | rtrlib/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öthke | e1f938d7cd2 | rtrlib/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öthke | 1f8a5ddcdb5 | rtrlib/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öthke | 6f719b869bf | rtrlib/transport/ssh: check malloc return values in init | |||
Marcel Röthke | e3ce4121431 | rtrlib/transport/ssh: remove stray semicolon | |||
Marcel Röthke | 1dfbd22b0d5 | rtrlib/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öthke | 5ba114366db | tools/rtrclient: implement ssh password auth | |||
Marcel Röthke | d3da6a14f74 | rtrlib/transport/ssh: add support for password authentication | |||
Marcel Röthke | f2a38c5946e | rtrlib/transport/ssh: fix log prefix in tr_ssh_open | |||
Marcel Röthke | 56e67e78059 | cmake: 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ählisch | 93724e4fb3c | add badges to README.md and ref to CONTRIBUTING (#261)* add badges to README.md * add ref to CONTRIBUTING.md in README.md | |||
Marcel Röthke | a6175bb0947 | rtrlib/transport: make connect timeout configurable | |||
Marcel Röthke | cc95e0c43a4 | rtrlib/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öthke | f5cfe3176b3 | tests: fix warning about discarded qualifier in live validation test | |||
Colin Sames | 4a608734dfe | rtrlib/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 Guibert | 03f6894794d | tools: 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 Guibert | 967fe6f6d42 | rtrlib: 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 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 Winter | 05af8c7cbaa | redhat: Add new changelog entry to fix rpmlint changelog errorSigned-off-by: Martin Winter <mwinter@opensourcerouting.org> | |||
Jakob Otto | 09b5c4923eb | Rename README to README.md (#253)* Rename README to README.md * Cleanup Formatting of README.md | |||
Philippe 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öthke | 1b52b5ca920 | add 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öthke | 3b175530763 | fix various spelling errors throughout the project | |||
Marcel Röthke | 652f0d37792 | Ensure all relevant source files pass checkpatch | |||
Marcel Röthke | bebe573cd20 | scripts: update checkpatch IGNORE list | |||
Marcel Röthke | af89075e50d | scripts: 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öthke | f64ba36b594 | Add .clang-formatBased the on .clang-format from the frr project | |||
Marcel Röthke | 08c050601b2 | tools: fix build error with mustachmustach relies on transitive includes to work, this introduces a wrapping header that satisfies these | |||
Marcel Röthke | babdd7a4729 | reformat whole codebase with clang-formatDone with `clang-format -i -verbose -style=file {rtrlib,tools,tests}/**/*.[ch]` | |||
Marcel Röthke | c3c10be7663 | tests: fix transitive includes | |||
Marcel Röthke | dc8ee3c9671 | tests: 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 Meiling | b0a7111a561 | update to 0.7.0 | |||
Sebastian Meiling | b3bfd84147c | tools: 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öthke | 4536bb0c5cc | tools/rtrclient: print newline after error | |||
Marcel Röthke | 760ad7cfb67 | tools/rtrclient: make status update printing optional |
Commits
Author | Commit | Commit date | Issues | |
---|---|---|---|---|
Nils Bars | c7d58ab5181 | |||
maurim | 52b2d660496 | |||
Zopolis4 | e3f6bf625bf | |||
Olivier Cochard-Labbé | 1a2a042ca65 | |||
Marcel Röthke | 41f5f057d47 | |||
Martin Winter | d80baaf0cff | |||
Marcel Röthke | 179e7efb595 | |||
Colin Sames | 474ea3814af | |||
Colin Sames | f822fd98ac3 | |||
Colin Sames | ebee20f24a0 | |||
Colin Sames | 8d95a54a8bf | |||
Colin Sames | 264a854f39e | |||
Matthias Wählisch | b8b99100c9f | |||
Marcel Röthke | d05a0b6ae8f | |||
Marcel Röthke | b3bcfeba7b6 | |||
Marcel Röthke | 65cdd1e3a95 | |||
Marcel Röthke | e1f938d7cd2 | |||
Marcel Röthke | 1f8a5ddcdb5 | |||
Marcel Röthke | 6f719b869bf | |||
Marcel Röthke | e3ce4121431 | |||
Marcel Röthke | 1dfbd22b0d5 | |||
Marcel Röthke | 5ba114366db | |||
Marcel Röthke | d3da6a14f74 | |||
Marcel Röthke | f2a38c5946e | |||
Marcel Röthke | 56e67e78059 | |||
Matthias Wählisch | 93724e4fb3c | |||
Marcel Röthke | a6175bb0947 | |||
Marcel Röthke | cc95e0c43a4 | |||
Marcel Röthke | f5cfe3176b3 | |||
Colin Sames | 4a608734dfe | |||
Philippe Guibert | 03f6894794d | |||
Philippe Guibert | 967fe6f6d42 | |||
Philippe Guibert | e563574c2ef | |||
Martin Winter | 05af8c7cbaa | |||
Jakob Otto | 09b5c4923eb | |||
Philippe Guibert | 4828e6c0490 | |||
Marcel Röthke | 1b52b5ca920 | |||
Marcel Röthke | 3b175530763 | |||
Marcel Röthke | 652f0d37792 | |||
Marcel Röthke | bebe573cd20 | |||
Marcel Röthke | af89075e50d | |||
Marcel Röthke | f64ba36b594 | |||
Marcel Röthke | 08c050601b2 | |||
Marcel Röthke | babdd7a4729 | |||
Marcel Röthke | c3c10be7663 | |||
Marcel Röthke | dc8ee3c9671 | |||
Sebastian Meiling | b0a7111a561 | |||
Sebastian Meiling | b3bfd84147c | |||
Marcel Röthke | 4536bb0c5cc | |||
Marcel Röthke | 760ad7cfb67 |