Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
sofia-sip
Commits
fc6fe82d
Commit
fc6fe82d
authored
Nov 27, 2008
by
Pekka Pessi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipt/token64.c: fixed whitespace
darcs-hash:20081127125739-db55f-792c40edb4e54427859bfbd0d44dfce1477a71e5.gz
parent
97918cfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
libsofia-sip-ua/ipt/token64.c
libsofia-sip-ua/ipt/token64.c
+5
-5
No files found.
libsofia-sip-ua/ipt/token64.c
View file @
fc6fe82d
...
...
@@ -22,13 +22,13 @@
*
*/
/**@internal @file token64.c
/**@internal @file token64.c
*
* Token encoding.
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
*
* @date Created: Wed Apr 3 10:45:47 2002 ppessi
* @date Created: Wed Apr 3 10:45:47 2002 ppessi
*/
#include "config.h"
...
...
@@ -39,10 +39,10 @@
#include "sofia-sip/token64.h"
static
const
char
code
[
65
]
=
static
const
char
code
[
65
]
=
"0123456789-abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ"
;
/** Encode data as a SIP/HTTP token.
/** Encode data as a SIP/HTTP token.
*
* @note
* A token is case-independent, so this is really not a good idea.
...
...
@@ -74,7 +74,7 @@ isize_t token64_e(char b[], isize_t bsiz, void const *data, isize_t dlen)
for
(
i
=
0
;
i
<
dlen
;
i
+=
3
,
s
+=
4
)
{
unsigned
char
h0
=
h
[
i
],
h1
=
h
[
i
+
1
],
h2
=
h
[
i
+
2
];
s
[
0
]
=
code
[
h0
>>
2
];
s
[
1
]
=
code
[((
h0
<<
4
)
|
(
h1
>>
4
))
&
63
];
s
[
2
]
=
code
[((
h1
<<
4
)
|
(
h2
>>
6
))
&
63
];
...
...
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