Recent

Author Topic: UUID RFC 4122 Version 1  (Read 6587 times)

CSKir

  • Newbie
  • Posts: 4
UUID RFC 4122 Version 1
« on: October 09, 2023, 10:07:02 am »
Hello,

External web service requires message GUIDs to be generated using RFC 4122 Version 1. I tried to use libuuid.pp (this module uses libuuid.so.1 and uuid_generate_time) and macuuid.pp. According to the service, both GUIDs are incompatible with RFC 4122 Version 1.

Do Lazarus, Free Pascal or Linux (.so-library with appropriate procedure) have ways to generate rigorous RFC 4122 Version 1 GUID? Sorry, if I posted in the wrong section.

Thank you in advance for your help.

CSKir

  • Newbie
  • Posts: 4
Re: UUID RFC 4122 Version 1
« Reply #1 on: October 16, 2023, 07:22:59 pm »
I have found a shared library uuid-ossp.so inside postgresql-contrib package that could have helped me. ldd uuid-ossp.so shows that all dependencies are resolved. libossp-uuid.so.16 is present. nm -D uuid-ossp.so shows a lot of undefined symbols: uuid_in, uuid_out, ... They are also absent in libossp-uuid.so.16. So, LoadLibrary doesn't work for uuid-ossp.so. What particular version of libossp-uuid.so.16 is required for Postgresql shared library uuid-ossp.so to work?

af0815

  • Hero Member
  • *****
  • Posts: 1276
Re: UUID RFC 4122 Version 1
« Reply #2 on: October 17, 2023, 07:00:53 am »
Is uuid.pas in fpcsrc/packages/hash/src not working for you ?
regards
Andreas

CSKir

  • Newbie
  • Posts: 4
Re: UUID RFC 4122 Version 1
« Reply #3 on: October 17, 2023, 04:39:54 pm »
Thank you very much. Seems, it is really RFC 4122 version 1. As soon as I get an access to the web service, I'll check it.

CSKir

  • Newbie
  • Posts: 4
Re: UUID RFC 4122 Version 1
« Reply #4 on: October 21, 2023, 11:50:04 am »
Thanks again. The web service accepted the message. The issue is resolved.

 

TinyPortal © 2005-2018