df5e84
diff -ru redland-1.0.17.orig/src/rdf_uri.c redland-1.0.17/src/rdf_uri.c
df5e84
--- redland-1.0.17.orig/src/rdf_uri.c	2021-03-22 09:02:42.420115182 +0000
df5e84
+++ redland-1.0.17/src/rdf_uri.c	2021-03-22 09:06:54.432694225 +0000
df5e84
@@ -358,32 +358,14 @@
df5e84
  * @world: #librdf_world object
df5e84
  * @uri: #librdf_uri object
df5e84
  *
df5e84
- * Get a digest for the URI.
df5e84
- * 
df5e84
- * Generates a digest object for the URI.  The digest factory used is
df5e84
- * determined at class initialisation time by librdf_init_uri().
df5e84
- * 
df5e84
- * Return value: new #librdf_digest object or NULL on failure.
df5e84
+ * exported public in error but never usable
df5e84
+ *
df5e84
+ * Return value: NULL.
df5e84
  **/
df5e84
 librdf_digest*
df5e84
 librdf_uri_get_digest(librdf_world* world, librdf_uri* uri)
df5e84
 {
df5e84
-  librdf_digest* d;
df5e84
-  unsigned char *str;
df5e84
-  size_t len;
df5e84
-  
df5e84
-  LIBRDF_ASSERT_OBJECT_POINTER_RETURN_VALUE(uri, librdf_uri, NULL);
df5e84
-
df5e84
-  d = librdf_new_digest_from_factory(world, world->digest_factory);
df5e84
-  if(!d)
df5e84
-    return NULL;
df5e84
-
df5e84
-  str = librdf_uri_as_counted_string(uri, &len;;
df5e84
-  
df5e84
-  librdf_digest_update(d, str, len);
df5e84
-  librdf_digest_final(d);
df5e84
-  
df5e84
-  return d;
df5e84
+  return NULL;
df5e84
 }
df5e84
 
df5e84
 
df5e84
@@ -536,7 +518,6 @@
df5e84
 {
df5e84
   const unsigned char *hp_string=(const unsigned char*)"http://purl.org/net/dajobe/";
df5e84
   librdf_uri *uri1, *uri2, *uri3, *uri4, *uri5, *uri6, *uri7, *uri8, *uri9;
df5e84
-  librdf_digest *d;
df5e84
   const char *program=librdf_basename((const char*)argv[0]);
df5e84
   const char *file_string="/big/long/directory/file";
df5e84
   const unsigned char *file_uri_string=(const unsigned char*)"file:///big/long/directory/file";
df5e84
@@ -571,18 +552,11 @@
df5e84
   librdf_uri_print(uri2, stderr);
df5e84
   fputs("\n", stderr);
df5e84
 
df5e84
-  
df5e84
-  fprintf(stderr, "%s: Getting digest for URI\n", program);
df5e84
-  d = librdf_uri_get_digest(world, uri2);
df5e84
-  if(!d) {
df5e84
-    fprintf(stderr, "%s: Failed to get digest for URI %s\n", program, 
df5e84
+  if(librdf_uri_get_digest(world, uri2)) {
df5e84
+    fprintf(stderr, "%s: Didn't fail to get digest for URI %s\n", program, 
df5e84
 	    librdf_uri_as_string(uri2));
df5e84
     return(1);
df5e84
   }
df5e84
-  fprintf(stderr, "%s: Digest is: ", program);
df5e84
-  librdf_digest_print(d, stderr);
df5e84
-  fputs("\n", stderr);
df5e84
-  librdf_free_digest(d);
df5e84
 
df5e84
   uri3=librdf_new_uri(world, (const unsigned char*)"file:/big/long/directory/");
df5e84
   uri4=librdf_new_uri(world, (const unsigned char*)"http://somewhere/dir/");