From bdkacos@REDACTED Fri Aug 4 01:05:26 2006 From: bdkacos@REDACTED (Brian Kacos) Date: Thu, 3 Aug 2006 19:05:26 -0400 (EDT) Subject: [PATCH] to add reg_multi_sz support to win32reg Message-ID: <63141.70.88.166.197.1154646326.squirrel@huskymail.mtu.edu> I wrote a patch to win32reg.erl (part of stdlib) that adds the ability to manipulate Windows32 Registry values of types REG_MULTI_SZ, REG_EXPAND_SZ, and REG_NONE. This is done through three new functions (so as to maintain backward compatibility). I have defined these functions below in the same manner as the erlang reference manual (using copy, paste and editing). Also, this is my first patch (to any project) so go easy on me. :) I wrote this because I needed to mess with REG_MULTI_SZ values for a project. Anywho, I can't beleive how easy it is to understand erlang source. Comments are almost never required, and things are still understandable. It's amazing. Anyway, without further ado, the function descriptions: set_value_typed(RegHandle, Name, Value, Type) -> ReturnValue Types: Name = string() | default Value = string() | integer() | binary() Type = reg_none | reg_dword | reg_sz | reg_expand_sz | reg_multi_sz | reg_binary Sets the named (or default) value to value. Calls the Win32 API function RegSetValueEx(). Value must be of a type compatible with the Type field, according to the table below: reg_none = binary() reg_dword = integer() reg_sz = string() reg_expand_sz = string() reg_multi_sz = binary() reg_binary = binary() The registry must have been opened in write-mode. value_typed(RegHandle, Name) -> ReturnValue Types: Name = string() | default ReturnValue = {ok, Value, Type} Value = string() | integer() | binary() Type = reg_none | reg_dword | reg_sz | reg_expand_sz | reg_multi_sz | reg_binary Retrieves the named value (or default) on the current key. Registry values of type REG_SZ and REG_EXPAND_SZ (as always on the expand, although the original so otherwise), are returned as strings. Type REG_DWORD values are returned as integers. All other types are returned as binaries. values_typed(RegHandle) -> ReturnValue Types: ReturnValue = {ok, ValueTriplets} ValueTriplets = [ValueTriplet] ValueTriplet = {Name, Value, Type} Name = string | default Value = string() | integer() | binary() Type = reg_none | reg_dword | reg_sz | reg_expand_sz | reg_multi_sz | reg_binary Retrieves a list of all values on the current key. The values have types corresponding to the registry types, see value. Calls the Win32 API function EnumRegValuesEx(). -------------- next part -------------- A non-text attachment was scrubbed... Name: win32reg.erl.patch Type: application/octet-stream Size: 4573 bytes Desc: not available URL: From will@REDACTED Mon Aug 7 03:48:06 2006 From: will@REDACTED (Will) Date: Sun, 06 Aug 2006 18:48:06 -0700 Subject: Patch: Add MD5 and SHA1 sign/verify functions Message-ID: Hello, Here is a patch which adds RSA sign and verify functions to the crypto application. The existing crypto:rsa_verify/3 function only supports SHA1 digests. This patch adds the following new functions: crypto:rsa_md5_verify/3 crypto:rsa_sha_verify/3 crypto:rsa_md5_sign/2 crypto:rsa_sha_sign/2 Please let me know if any improvements are needed; I attempted to follow the general spirit of the existing crypto code. If possible I'd like to see this added to OTP as it seems like very useful functionality. Thanks, Will -------------- next part -------------- A non-text attachment was scrubbed... Name: rsa_verify_sign.patch Type: text/x-patch Size: 8222 bytes Desc: rsa_verify_sign patch URL: From michel.urvoy@REDACTED Thu Aug 17 11:35:10 2006 From: michel.urvoy@REDACTED (Michel Urvoy) Date: Thu, 17 Aug 2006 11:35:10 +0200 Subject: IRIX Patch Message-ID: Hi, here are two patches from Daniel Solaz for SGI/IRIX: Hello. I finally got myself working on this. Should have happened earlier, because it took under half an hour: R11B-0 os_mon looks just like R10B-10's, the very same R10B-10 patch might do but I reworked the changes by hand. >From the Erlang sources root: $ cd lib/os_mon $ patch From the Erlang sources root: $ patch <64bits_R11B-0.diff $ CC="gcc -mabi=64" ./configure ... Well, now the OTP guys can release R11B-1... Regards. -Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: 64bits_R11B-0.diff Type: application/octet-stream Size: 1176 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: os_mon_R11B-0.diff Type: application/octet-stream Size: 5526 bytes Desc: not available URL: From raimo@REDACTED Fri Aug 18 15:05:23 2006 From: raimo@REDACTED (Raimo Niskanen) Date: 18 Aug 2006 15:05:23 +0200 Subject: IRIX Patch References: Message-ID: Unfortunately, this patch came a little to late for the R11B-1 release. We are in the final testing phase and can not take this kind of changes. Can you do a patch on configure.in instead of on configure, we would appreciate it (for R11B-2). michel.urvoy@REDACTED (Michel Urvoy) writes: > Hi, here are two patches from Daniel Solaz for SGI/IRIX: > > Hello. I finally got myself working on this. Should have happened > earlier, because it took under half an hour: R11B-0 os_mon looks just > like R10B-10's, the very same R10B-10 patch might do but I reworked the > changes by hand. > > From the Erlang sources root: > $ cd lib/os_mon > $ patch > This time I compiled Erlang in 64 bits (for no particular reason...), > which required patching erts/configure: it fails when the CC variable > contains spaces. > > From the Erlang sources root: > $ patch <64bits_R11B-0.diff > $ CC="gcc -mabi=64" ./configure ... > > Well, now the OTP guys can release R11B-1... > > Regards. > -Daniel > > -- / Raimo Niskanen, Erlang/OTP, Ericsson AB