Comments (4)
I've never tried it myself and wouldn't be surprised if it doesn't work. My involvement with maintaining libsrtp only goes back about a year. Maybe one of the other maintainers knows the history on this.
from libsrtp.
It looks like crypto/kernel/err.c will send errors to syslog if ERR_REPORTING_SYSLOG is defined. Whether this code works is anyone's guess. But there's no way to enable this through the configure script. Therefore, it appears --enable-syslog is useless. However, a downstream project could still enable ERR_REPORTING_SYSLOG using CFLAGS. My vote would be to remove the --enable-syslog option and leave the code in err.c "as is".
from libsrtp.
Facts:
- There is NO reason at all for a library to log into stdout/stderr.
- There is NO reason at all for a library to log into syslog.
- There is NO reason at all for a library to log into a file.
A library is a piece to be integrated into an application. The library must provide an API with descriptive error codes (and optionally string descriptions). libsrtp already does that. So the app is responsible for collecting those errors reported by the library and deciding whether to log them to stderr, to a file, to syslog or to send them via Whatsapp.
Please, remove everything related to "logging" from libsrtp.
PS: There is a single place in which a library MAY log something to stderr: The case in which it is about to abort due to an internal bug that should never happen. In that case it is "acceptable" for the library to print the error to stderr before calling abort()
. This is for example the only case in which the very well designed libuv C library prints to stderr.
from libsrtp.
I've pushed two commits into the 2_0_0_dev branch today to resolve this. The syslog option is no longer present. The stdout option is retained, but now disabled by default. I've retained this since it's useful for troubleshooting.
from libsrtp.
Related Issues (20)
- unresolved external symbol srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80 when linking lib on windows HOT 2
- Writeup of the when Openssl is required, and which operations/modes are affected? HOT 4
- support ubuntu-22.04 in github workflow HOT 2
- check if libdl and libz are really needed HOT 1
- New release would be appreciated HOT 3
- Usecase Question about libsrtp HOT 1
- Hash of v2.4.2 tarball has changed HOT 4
- srtp_create fails if setting up RTP encryption with AES-128-GCM and not specifying RTCP encryption HOT 2
- Implementation of custom encryption algorithm HOT 1
- Performance issue with OpennSSL 3 and libsrtp HOT 9
- Build fails on macOS -Wshorten-64-to-32 HOT 2
- How to compile libsrtp2.3.0 with AES-GCM cipher group support ? HOT 1
- Cross-compile libsrtp to Windows (64-bit) is failing given that OpenSSL can't be found HOT 1
- When is safe to use srtp_remove_stream? HOT 2
- Bad link in README.md HOT 1
- Release Version 3.0.0 HOT 3
- Use consistent types through out code base HOT 1
- Review public API
- libsrtp + openssl + certificates HOT 2
- remove NO_64BIT_MATH code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsrtp.