Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new dsl_source_rtsp_tls_validation_flags_get/set services #992

Closed
rjhowell44 opened this issue Jun 21, 2023 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rjhowell44
Copy link
Collaborator

Need services to get/set the TLS Certificate validation flags for a named RTSP Source -- flags used to validate the server certificate
New DSL constant values

/**
 * @brief TLS certificate validation flags used to validate the 
 * RTSP server certificate.
 */
#define DSL_TLS_CERTIFICATE_UNKNOWN_CA                              0x00000001
#define DSL_TLS_CERTIFICATE_BAD_IDENTITY                            0x00000002
#define DSL_TLS_CERTIFICATE_NOT_ACTIVATED                           0x00000004
#define DSL_TLS_CERTIFICATE_EXPIRED                                 0x00000008
#define DSL_TLS_CERTIFICATE_REVOKED                                 0x00000010
#define DSL_TLS_CERTIFICATE_INSECURE                                0x00000020
#define DSL_TLS_CERTIFICATE_GENERIC_ERROR                           0x00000040
#define DSL_TLS_CERTIFICATE_VALIDATE_ALL                            0x0000007f

New Services

/**
 * @brief Gets the current connection validation flags for the named RTSP Source
 * @param[in] name name of the source object to query
 * @param[out] flags mask of DSL_TLS_CERTIFICATE constant values. 
 * Default = DSL_TLS_CERTIFICATE_VALIDATE_ALL.
 * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_SOURCE_RESULT otherwise.
 */
DslReturnType dsl_source_rtsp_tls_validation_flags_get(const whcar_t* name,
    uint* flags);

/**
 * @brief Sets the connection validation flags for the named RTSP Source to use.
 * @param[in] name name of the source object to update
 * @param[in] flags mask of DSL_TLS_CERTIFICATE constant values. 
 * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_SOURCE_RESULT otherwise.
 */
DslReturnType dsl_source_rtsp_tls_validation_flags_get(const whcar_t* name,
    uint flags);
@rjhowell44
Copy link
Collaborator Author

Work has been merged into the v0.27.alpha branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant