Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
d6da7903
Commit
d6da7903
authored
Dec 31, 2009
by
malosek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused foreign/openpgm/create_custom_gsi_1.patch file
parent
7cb02fb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
44 deletions
+0
-44
Makefile.am
Makefile.am
+0
-1
create_custom_gsi_1.patch
foreign/openpgm/create_custom_gsi_1.patch
+0
-43
No files found.
Makefile.am
View file @
d6da7903
...
...
@@ -11,7 +11,6 @@ DIST_SUBDIRS = src man perf devices bindings examples
EXTRA_DIST
=
\
$(top_srcdir)
/foreign/openpgm/@pgm2_basename@.tar.bz2
\
$(top_srcdir)
/foreign/openpgm/create_custom_gsi_1.patch
\
$(top_srcdir)
/foreign/xmlParser/xmlParser.cpp
\
$(top_srcdir)
/foreign/xmlParser/xmlParser.hpp
...
...
foreign/openpgm/create_custom_gsi_1.patch
deleted
100644 → 0
View file @
7cb02fb3
--- foreign/openpgm/libpgm-1.2.14/openpgm/pgm/include/pgm/gsi.h 2009-08-27 04:53:23.000000000 +0200
+++ foreign/openpgm/libpgm-1.2.14/openpgm/pgm/include/pgm/gsi.h 2009-10-05 09:29:21.765126004 +0200
@@ -42,6 +42,7 @@
int pgm_create_md5_gsi (pgm_gsi_t*);
int pgm_create_ipv4_gsi (pgm_gsi_t*);
+int pgm_create_custom_gsi (const char*, pgm_gsi_t*);
int pgm_print_gsi_r (const pgm_gsi_t*, char*, gsize);
gchar* pgm_print_gsi (const pgm_gsi_t*);
--- foreign/openpgm/libpgm-1.2.14/openpgm/pgm/gsi.c 2009-08-27 04:53:25.000000000 +0200
+++ foreign/openpgm/libpgm-1.2.14/openpgm/pgm/gsi.c 2009-10-05 09:28:47.113125069 +0200
@@ -430,6 +430,28 @@
return retval;
}
+/* create a global session ID as low order 48 bits of md5 of the string. */
+int
+pgm_create_custom_gsi (
+ const char *string_,
+ pgm_gsi_t* gsi_
+ )
+{
+ g_return_val_if_fail (gsi_ != NULL, -EINVAL);
+
+ struct md5_ctx ctx;
+ char resblock [16];
+
+ md5_init_ctx (&ctx);
+ md5_process_bytes (string_, strlen (string_), &ctx);
+ md5_finish_ctx (&ctx, resblock);
+
+ memcpy (gsi_, resblock + 10, 6);
+
+ return 0;
+}
+
+
/* re-entrant form of pgm_print_gsi()
*/
int
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