Changed digest out to be the same format as command line tools

This commit is contained in:
Deon George 2013-11-11 11:41:54 +11:00
parent 137bb28b7a
commit 30b3eb1937
2 changed files with 3 additions and 4 deletions

View File

@ -317,9 +317,8 @@ int tsm_sendfile(dsUint32_t dsmHandle, char *fsname, char *filename, long long l
EVP_DigestFinal_ex(&mdctx, md_value, &md_len); EVP_DigestFinal_ex(&mdctx, md_value, &md_len);
EVP_MD_CTX_cleanup(&mdctx); EVP_MD_CTX_cleanup(&mdctx);
fprintf(stderr,"%s: ",digest); for(i=0; i<md_len; i++) fprintf(stdout,"%02x",md_value[i]);
for(i=0; i<md_len; i++) fprintf(stderr,"%02x",md_value[i]); fprintf(stdout," %s (%s)\n",dsmObjnameToStr(objName),digest);
fprintf(stderr,"\n");
} }
#endif #endif

View File

@ -1,4 +1,4 @@
#define _TSMPIPE_VERSION "1.5.2" #define _TSMPIPE_VERSION "1.5.3"
#define ACTION_INFO 1 #define ACTION_INFO 1
#define ACTION_CREATE 2 #define ACTION_CREATE 2