Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
94ec712c
Commit
94ec712c
authored
Sep 05, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence compiler warning about signed vs unsigned chars.
parent
6b41d642
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
contrib/sslinfo/sslinfo.c
contrib/sslinfo/sslinfo.c
+8
-2
No files found.
contrib/sslinfo/sslinfo.c
View file @
94ec712c
...
...
@@ -122,7 +122,10 @@ Datum ASN1_STRING_to_text(ASN1_STRING *str)
outlen
=
0
;
BIO_write
(
membuf
,
&
outlen
,
1
);
size
=
BIO_get_mem_data
(
membuf
,
&
sp
);
dp
=
pg_do_encoding_conversion
(
sp
,
size
-
1
,
PG_UTF8
,
GetDatabaseEncoding
());
dp
=
(
char
*
)
pg_do_encoding_conversion
((
unsigned
char
*
)
sp
,
size
-
1
,
PG_UTF8
,
GetDatabaseEncoding
());
outlen
=
strlen
(
dp
);
result
=
palloc
(
VARHDRSZ
+
outlen
);
memcpy
(
VARDATA
(
result
),
dp
,
outlen
);
...
...
@@ -288,7 +291,10 @@ Datum X509_NAME_to_text(X509_NAME *name)
BIO_write
(
membuf
,
&
i
,
1
);
size
=
BIO_get_mem_data
(
membuf
,
&
sp
);
dp
=
pg_do_encoding_conversion
(
sp
,
size
-
1
,
PG_UTF8
,
GetDatabaseEncoding
());
dp
=
(
char
*
)
pg_do_encoding_conversion
((
unsigned
char
*
)
sp
,
size
-
1
,
PG_UTF8
,
GetDatabaseEncoding
());
BIO_free
(
membuf
);
outlen
=
strlen
(
dp
);
result
=
palloc
(
VARHDRSZ
+
outlen
);
...
...
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