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
fdbfe1c6
Commit
fdbfe1c6
authored
May 15, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Well, the correct code - that corresponds to current
encode - is below. I even got the linefeed stuff wrong. -- marko
parent
0eacc60e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
contrib/pgcrypto/encode.c
contrib/pgcrypto/encode.c
+3
-2
No files found.
contrib/pgcrypto/encode.c
View file @
fdbfe1c6
...
...
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: encode.c,v 1.
5 2001/05/13 02:17:09
momjian Exp $
* $Id: encode.c,v 1.
6 2001/05/15 04:45:15
momjian Exp $
*/
#include "postgres.h"
...
...
@@ -349,7 +349,8 @@ hex_dec_len(uint srclen)
uint
b64_enc_len
(
uint
srclen
)
{
return
srclen
+
(
srclen
+
2
/
3
)
+
(
srclen
/
(
76
/
2
))
+
2
;
/* 3 bytes will be converted to 4, linefeed after 76 chars */
return
(
srclen
+
2
)
*
4
/
3
+
srclen
/
(
76
*
3
/
4
);
}
uint
...
...
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