Skip to content

Commit 173c72f

Browse files
committed
Rename uprobe_https_bearssl
1 parent 39f6d03 commit 173c72f

File tree

6 files changed

+28
-26
lines changed

6 files changed

+28
-26
lines changed

examples/hls2rtp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
#include "upipe-pthread/upipe_pthread_transfer.h"
8383
#include "upipe-pthread/umutex_pthread.h"
8484
#ifdef UPIPE_HAVE_BEARSSL_H
85-
#include "upipe-bearssl/uprobe_https.h"
85+
#include "upipe-bearssl/uprobe_https_bearssl.h"
8686
#endif
8787

8888
#include <pthread.h>
@@ -1752,7 +1752,7 @@ int main(int argc, char **argv)
17521752
uprobe_release(main_probe);
17531753
main_probe = &probe_src;
17541754
#ifdef UPIPE_HAVE_BEARSSL_H
1755-
main_probe = uprobe_https_alloc(main_probe);
1755+
main_probe = uprobe_https_bearssl_alloc(main_probe);
17561756
#endif
17571757
{
17581758
struct upipe_mgr *upipe_auto_src_mgr = upipe_auto_src_mgr_alloc();

include/upipe-bearssl/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NULL =
22
myincludedir = $(includedir)/upipe-bearssl
33
myinclude_HEADERS = \
4-
uprobe_https.h \
4+
uprobe_https_bearssl.h \
55
$(NULL)

include/upipe-bearssl/uprobe_https.h renamed to include/upipe-bearssl/uprobe_https_bearssl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 EasyTools
2+
* Copyright (C) 2020-2024 EasyTools
33
*
44
* Authors: Arnaud de Turckheim
55
*
@@ -27,8 +27,8 @@
2727
* @short probe catching http scheme hook for SSL connection
2828
*/
2929

30-
#ifndef _UPIPE_BEARSSL_UPROBE_HTTPS_H_
31-
#define _UPIPE_BEARSSL_UPROBE_HTTPS_H_
30+
#ifndef _UPIPE_BEARSSL_UPROBE_HTTPS_BEARSSL_H_
31+
#define _UPIPE_BEARSSL_UPROBE_HTTPS_BEARSSL_H_
3232

3333
#ifdef __cplusplus
3434
extern "C" {
@@ -41,7 +41,7 @@ extern "C" {
4141
* @param next next probe to test if this one doesn't catch the event
4242
* @return pointer to uprobe, or NULL in case of error
4343
*/
44-
struct uprobe *uprobe_https_alloc(struct uprobe *next);
44+
struct uprobe *uprobe_https_bearssl_alloc(struct uprobe *next);
4545

4646
#ifdef __cplusplus
4747
}

lib/upipe-bearssl/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lib_LTLIBRARIES = libupipe_bearssl.la
44
libupipe_bearssl_la_SOURCES = \
55
https_source_hook.h \
66
https_source_hook.c \
7-
uprobe_https.c \
7+
uprobe_https_bearssl.c \
88
$(NULL)
99

1010
libupipe_bearssl_la_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include

lib/upipe-bearssl/https_source_hook.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 EasyTools
2+
* Copyright (C) 2020-2024 EasyTools
33
*
44
* Authors: Arnaud de Turckheim
55
*
@@ -27,8 +27,8 @@
2727
* @short HTTPS hooks for SSL data read/write.
2828
*/
2929

30-
#ifndef _UPIPE_MODULES_HTTPS_SOURCE_HOOK_H_
31-
#define _UPIPE_MODULES_HTTPS_SOURCE_HOOK_H_
30+
#ifndef _UPIPE_BEARSSL_HTTPS_SOURCE_HOOK_H_
31+
#define _UPIPE_BEARSSL_HTTPS_SOURCE_HOOK_H_
3232

3333
#include "upipe/uref.h"
3434
#include "upipe-modules/upipe_http_source.h"

lib/upipe-bearssl/uprobe_https.c renamed to lib/upipe-bearssl/uprobe_https_bearssl.c

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 EasyTools
2+
* Copyright (C) 2020-2024 EasyTools
33
*
44
* Authors: Arnaud de Turckheim
55
*
@@ -33,17 +33,17 @@
3333

3434
#include "upipe-modules/upipe_http_source.h"
3535

36-
#include "upipe-bearssl/uprobe_https.h"
36+
#include "upipe-bearssl/uprobe_https_bearssl.h"
3737

3838
#include "https_source_hook.h"
3939

4040
/** @This stores the private context of the probe. */
41-
struct uprobe_https {
41+
struct uprobe_https_bearssl {
4242
/** public probe structure */
4343
struct uprobe uprobe;
4444
};
4545

46-
UPROBE_HELPER_UPROBE(uprobe_https, uprobe);
46+
UPROBE_HELPER_UPROBE(uprobe_https_bearssl, uprobe);
4747

4848
/** @internal @This catches events.
4949
*
@@ -52,7 +52,7 @@ UPROBE_HELPER_UPROBE(uprobe_https, uprobe);
5252
* @param event event thrown
5353
* @param args optional arguments
5454
*/
55-
static int uprobe_https_catch(struct uprobe *uprobe,
55+
static int uprobe_https_bearssl_catch(struct uprobe *uprobe,
5656
struct upipe *upipe,
5757
int event, va_list args)
5858
{
@@ -85,32 +85,34 @@ static int uprobe_https_catch(struct uprobe *uprobe,
8585

8686
/** @internal @This initializes a HTTPS probe for SSL connection.
8787
*
88-
* @param uprobe_https pointer to the private context
88+
* @param uprobe_https_bearssl pointer to the private context
8989
* @param next next probe to test if this one doesn't catch the event
9090
* @return pointer to uprobe, or NULL in case of error
9191
*/
92-
static struct uprobe *uprobe_https_init(struct uprobe_https *uprobe_https,
93-
struct uprobe *next)
92+
static struct uprobe *
93+
uprobe_https_bearssl_init(struct uprobe_https_bearssl *uprobe_https,
94+
struct uprobe *next)
9495
{
9596
assert(uprobe_https);
96-
struct uprobe *uprobe = uprobe_https_to_uprobe(uprobe_https);
97-
uprobe_init(uprobe, uprobe_https_catch, next);
97+
struct uprobe *uprobe = uprobe_https_bearssl_to_uprobe(uprobe_https);
98+
uprobe_init(uprobe, uprobe_https_bearssl_catch, next);
9899
return uprobe;
99100
}
100101

101-
/** @internal @This cleans a uprobe_https structure.
102+
/** @internal @This cleans a uprobe_https_bearssl structure.
102103
*
103-
* @param uprobe_https pointer to the private context
104+
* @param uprobe_https_bearssl pointer to the private context
104105
*/
105-
static void uprobe_https_clean(struct uprobe_https *uprobe_https)
106+
static void
107+
uprobe_https_bearssl_clean(struct uprobe_https_bearssl *uprobe_https)
106108
{
107109
assert(uprobe_https);
108-
struct uprobe *uprobe = uprobe_https_to_uprobe(uprobe_https);
110+
struct uprobe *uprobe = uprobe_https_bearssl_to_uprobe(uprobe_https);
109111
uprobe_clean(uprobe);
110112
}
111113

112114
#define ARGS_DECL struct uprobe *next
113115
#define ARGS next
114-
UPROBE_HELPER_ALLOC(uprobe_https)
116+
UPROBE_HELPER_ALLOC(uprobe_https_bearssl)
115117
#undef ARGS
116118
#undef ARGS_DECL

0 commit comments

Comments
 (0)