Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
sso
Commits
8e5900a2
Commit
8e5900a2
authored
Aug 12, 2013
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused base64 methods from mod_sso/sso_utils
parent
b5ec86fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
16 deletions
+0
-16
src/mod_sso/mod_sso.h
src/mod_sso/mod_sso.h
+0
-1
src/mod_sso/sso_utils.cc
src/mod_sso/sso_utils.cc
+0
-8
src/mod_sso/test/sso_utils_unittest.cc
src/mod_sso/test/sso_utils_unittest.cc
+0
-7
No files found.
src/mod_sso/mod_sso.h
View file @
8e5900a2
...
...
@@ -50,7 +50,6 @@ typedef map<string, string> params_t;
void
debug
(
const
string
&
s
);
string
url_decode
(
const
string
&
str
);
string
url_encode
(
const
string
&
str
);
string
base64_decode
(
const
string
&
str
);
params_t
parse_query_string
(
const
string
&
str
);
void
make_cookie_value
(
string
&
cookie_value
,
const
string
&
name
,
const
string
&
session_id
,
const
string
&
path
,
...
...
src/mod_sso/sso_utils.cc
View file @
8e5900a2
...
...
@@ -32,7 +32,6 @@
#include "http_protocol.h"
#include "http_main.h"
#include "ap_config.h"
#include "apr_base64.h"
#include "mod_sso.h"
namespace
modsso
{
...
...
@@ -114,13 +113,6 @@ string url_encode(const string& str) {
return
out
;
}
string
base64_decode
(
const
string
&
str
)
{
char
buf
[
apr_base64_decode_len
(
str
.
c_str
())
+
1
];
int
n
=
apr_base64_decode
(
buf
,
str
.
c_str
());
string
out
(
buf
,
n
);
return
out
;
}
params_t
parse_query_string
(
const
string
&
str
)
{
params_t
p
;
if
(
str
.
size
()
==
0
)
return
p
;
...
...
src/mod_sso/test/sso_utils_unittest.cc
View file @
8e5900a2
...
...
@@ -38,13 +38,6 @@ TEST_F(SSOUtilsTest, UrlEncode) {
EXPECT_EQ
(
reference
,
result
);
}
TEST_F
(
SSOUtilsTest
,
Base64Decode
)
{
string
reference
(
"just|an|example"
),
sample
(
"anVzdHxhbnxleGFtcGxl"
);
string
result
=
modsso
::
base64_decode
(
sample
);
ASSERT_EQ
(
reference
,
result
);
}
TEST_F
(
SSOUtilsTest
,
ParseQueryString
)
{
modsso
::
params_t
parms
;
parms
=
modsso
::
parse_query_string
(
"key1=val1&key%32=%76%61%6C2"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment