From 6faa61455076f9e7574436a48bbe3960a3dca4c5 Mon Sep 17 00:00:00 2001 From: Sergey Svistunov Date: Sat, 26 Oct 2024 20:01:29 +0300 Subject: [PATCH] Update curl-ca-bundle.crt, fix sendspace.com script and certificate error --- Data/Scripts/sendspace.nut | 141 ++++++++-------- Data/Scripts/sftp.nut | 5 +- Dist/curl-ca-bundle.crt | 189 ++++++++++++++++++---- Source/Core/Upload/ScriptUploadEngine.cpp | 23 --- 4 files changed, 228 insertions(+), 130 deletions(-) diff --git a/Data/Scripts/sendspace.nut b/Data/Scripts/sendspace.nut index f6c7bf9b..1ced4fcb 100644 --- a/Data/Scripts/sendspace.nut +++ b/Data/Scripts/sendspace.nut @@ -1,4 +1,4 @@ -apiKey <- "KAAK63MDZJ"; +const API_KEY = "KAAK63MDZJ"; function IsAuthenticated() { if (Sync.getValue("sessionKey") != "") { @@ -21,7 +21,7 @@ function Authenticate() { nm.addQueryHeader("Expect",""); - nm.setUrl("https://api.sendspace.com/rest/?method=auth.createtoken&api_key=" + apiKey + "&api_version=1.0&response_format=xml"); + nm.setUrl("https://api.sendspace.com/rest/?method=auth.createtoken&api_key=" + API_KEY + "&api_version=1.0&response_format=xml"); nm.doGet(""); local data = nm.responseBody(); @@ -192,7 +192,7 @@ function UploadFile(FileName, options) { local sessionKey = Sync.getValue("sessionKey"); local albumID = options.getFolderID(); - if(albumID == "") { + if (albumID == "") { albumID = "0"; } @@ -201,9 +201,9 @@ function UploadFile(FileName, options) { if (anonymous) { func = "anonymous.uploadgetinfo"; } - + if(anonymous) { - nm.setUrl("https://api.sendspace.com/rest/?method=anonymous.uploadgetinfo&api_key=KAAK63MDZJ&api_version=1.0"); + nm.setUrl("https://api.sendspace.com/rest/?method=anonymous.uploadgetinfo&api_key=" + API_KEY + "&api_version=1.0"); } else { nm.setUrl("https://api.sendspace.com/rest/?method=" + func + "&session_key=" + sessionKey); } @@ -211,99 +211,94 @@ function UploadFile(FileName, options) { nm.doGet(""); local data = nm.responseBody(); - local uploadUrl =""; - - local ex = regexp("upload url=\"(.+)\""); - - local res = ex.capture(data); - - if(res != null){ - uploadUrl= data.slice(res[1].begin,res[1].end); - } else { - return 0; - } - - local max_file_size = ""; - - ex = regexp("max_file_size=\"(.+)\""); - res = ex.capture(data); - if(res != null){ - max_file_size= data.slice(res[1].begin,res[1].end); - } - - local upload_identifier=""; + local xml = SimpleXml(); + local uploadUrl = ""; + local maxFileSize = ""; + local uploadIdentifier =""; + local extraInfo = ""; + if (xml.LoadFromString(data)) { + local root = xml.GetRoot("result", false); + local uploadNode = root.GetChild("upload", false); + uploadUrl = uploadNode.Attribute("url"); - ex = regexp("upload_identifier=\"(.+)\""); - res = ex.capture(data); - if(res != null){ - upload_identifier= data.slice(res[1].begin,res[1].end); + if (uploadUrl == "") { + WriteLog("error", "[sendspace.com] Failed to obtain upload URL."); + return 0; + } + maxFileSize = uploadNode.Attribute("max_file_size"); + uploadIdentifier = uploadNode.Attribute("upload_identifier"); + extraInfo = uploadNode.Attribute("extra_info"); } - local extra_info=""; - - ex = regexp("extra_info=\"(.+)\""); - res = ex.capture(data); - if(res != null){ - extra_info= data.slice(res[1].begin,res[1].end); - } - nm.setUrl(uploadUrl); - nm.addQueryParam("MAX_FILE_SIZE", max_file_size); - nm.addQueryParam("UPLOAD_IDENTIFIER", upload_identifier); - - nm.addQueryParam("extra_info", extra_info); - nm.addQueryParam("MAX_FILE_SIZE", max_file_size); + nm.addQueryParam("MAX_FILE_SIZE", maxFileSize); + nm.addQueryParam("UPLOAD_IDENTIFIER", uploadIdentifier); + nm.addQueryParam("extra_info", extraInfo); nm.addQueryParam("folder_id", albumID); - nm.addQueryParamFile("userfile",FileName, ExtractFileName(FileName),""); + nm.addQueryParamFile("userfile", FileName, ExtractFileName(FileName), GetFileMimeType(FileName)); nm.doUploadMultipartData(); + if (nm.responseCode() != 200) { + WriteLog("error", "[sendspace.com] Upload failed, response code=" + nm.responseCode()); + return 0; + } data = nm.responseBody(); local directUrl=""; local thumbUrl =""; local fileId=""; local ex; - local download_page_url=""; - local direct_download_url=""; - if(anonymous) { - ex = regexp("(.+)"); - res = ex.capture(data); - if(res != null){ - download_page_url= data.slice(res[1].begin,res[1].end); - } + local downloadPageUrl=""; + local directDownloadUrl=""; + local deleteUrl=""; + xml = SimpleXml(); + xml.LoadFromString(data); + + if (anonymous) { + xml = SimpleXml(); + xml.LoadFromString(data); + + local rootNode = xml.GetRoot("upload_done", false); + downloadPageUrl = rootNode.GetChild("download_url", false).Text(); + deleteUrl = rootNode.GetChild("delete_url", false).Text(); } else { - ex = regexp("id=(\\w+)"); + ex = regexp("file_id=(\\w+)"); local res = ex.capture(data); if(res != null){ fileId = data.slice(res[1].begin,res[1].end); } - + + if (fileId == "") { + WriteLog("error", "[sendspace.com] Upload failed"); + return 0; + } nm.doGet("https://api.sendspace.com/rest/?method=files.getInfo&session_key=" + sessionKey+"&file_id="+fileId); - - data = nm.responseBody(); - //[\\w/:&?%] - ex = regexp("download_page_url=\"(.+)\""); - res = ex.capture(data); - if(res != null){ - download_page_url= data.slice(res[1].begin,res[1].end); - + if (nm.responseCode() != 200) { + WriteLog("error", "[sendspace.com] Upload failed, response code=" + nm.responseCode()); + return 0; } + data = nm.responseBody(); - ex = regexp("direct_download_url=\"([\\w/:?&]*)\""); - res = ex.capture(data); - if(res != null){ - direct_download_url = data.slice(res[1].begin,res[1].end); - } + xml = SimpleXml(); + xml.LoadFromString(data); + + local rootNode = xml.GetRoot("result", false); + local fileNode = rootNode.GetChild("file", false); + downloadPageUrl = fileNode.Attribute("download_page_url"); + directDownloadUrl = fileNode.Attribute("direct_download_url"); } - if(direct_download_url != "") { - options.setDirectUrl(direct_download_url); + if (downloadPageUrl != "" || directDownloadUrl != "") { + options.setDirectUrl(directDownloadUrl); + options.setViewUrl(downloadPageUrl); + options.setDeleteUrl(deleteUrl); + return 1; + } else { + WriteLog("error", "[sendspace.com] Upload failed. Cannot obtain links to file."); } - - options.setViewUrl(download_page_url); - return 1; + return 0; } function ModifyFolder(album) { @@ -334,5 +329,5 @@ function ModifyFolder(album) { } function GetFolderAccessTypeList() { - return ["Приватный", "Для всех"]; + return ["Private", "Public"]; } \ No newline at end of file diff --git a/Data/Scripts/sftp.nut b/Data/Scripts/sftp.nut index c5bc7000..e5c9114f 100644 --- a/Data/Scripts/sftp.nut +++ b/Data/Scripts/sftp.nut @@ -125,6 +125,9 @@ function GetServerParamList() { hostname = "Server ip or hostname [:port]" folder = "Remote folder" downloadPath = "Download path (ftp or http)", - privateKeyPath = "Private key path" + privateKeyPath = { + title = "Private key path", + type = "filename" + } } } \ No newline at end of file diff --git a/Dist/curl-ca-bundle.crt b/Dist/curl-ca-bundle.crt index 051e035a..584ac46d 100644 --- a/Dist/curl-ca-bundle.crt +++ b/Dist/curl-ca-bundle.crt @@ -1,7 +1,9 @@ ## ## Bundle of CA Root Certificates ## -## Certificate data from Mozilla as of: Sun May 12 13:30:03 2024 GMT +## Certificate data from Mozilla as of: Tue Sep 24 03:12:04 2024 GMT +## +## Find updated versions here: https://curl.se/docs/caextract.html ## ## This is a bundle of X.509 certificates of public Certificate Authorities ## (CA). These were automatically extracted from Mozilla's root certificates @@ -13,8 +15,8 @@ ## an Apache+mod_ssl webserver for SSL client authentication. ## Just configure this file as the SSLCACertificateFile. ## -## Conversion done with mk-ca-bundle.pl version 1.27. -## SHA256: 4d96bd539f4719e9ace493757afbe4a23ee8579de1c97fbebc50bba3c12e8c1e +## Conversion done with mk-ca-bundle.pl version 1.29. +## SHA256: 36105b01631f9fc03b1eca779b44a30a1a5890b9bf8dc07ccb001a07301e01cf ## @@ -2600,36 +2602,6 @@ vLtoURMMA/cVi4RguYv/Uo7njLwcAjA8+RHUjE7AwWHCFUyqqx0LMV87HOIAl0Qx5v5zli/altP+ CAezNIm8BZ/3Hobui3A= -----END CERTIFICATE----- -GLOBALTRUST 2020 -================ ------BEGIN CERTIFICATE----- -MIIFgjCCA2qgAwIBAgILWku9WvtPilv6ZeUwDQYJKoZIhvcNAQELBQAwTT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q9XVsxJxaD1qaJwiMB8GA1Ud -IwQYMBaAFNwuH9FhN3nkq9XVsxJxaD1qaJwiMA0GCSqGSIb3DQEBCwUAA4ICAQCR8EICaEDuw2jA -VC/f7GLDw56KoDEoqoOOpFaWEhCGVrqXctJUMHytGdUdaG/7FELYjQ7ztdGl4wJCXtzoRlgHNQIw -4Lx0SsFDKv/bGtCwr2zD/cuz9X9tAy5ZVp0tLTWMstZDFyySCstd6IwPS3BD0IL/qMy/pJTAvoe9 -iuOTe8aPmxadJ2W8esVCgmxcB9CpwYhgROmYhRZf+I/KARDOJcP5YBugxZfD0yyIMaK9MOzQ0MAS -8cE54+X1+NZK3TTN+2/BT+MAi1bikvcoskJ3ciNnxz8RFbLEAwW+uxF7Cr+obuf/WEPPm2eggAe2 -HcqtbepBEX4tdJP7wry+UUTF72glJ4DjyKDUEuzZpTcdN3y0kcra1LGWge9oXHYQSa9+pTeAsRxS -vTOBTI/53WXZFM2KJVj04sWDpQmQ1GwUY7VA3+vA/MRYfg0UFodUJ25W5HCEuGwyEn6CMUO+1918 -oa2u1qsgEu8KwxCMSZY13At1XrFP1U80DhEgB3VDRemjEdqso5nCtnkn4rnvyOL2NSl6dPrFf4IF -YqYK6miyeUcGbvJXqBUzxvd4Sj1Ce2t+/vdG6tHrju+IaFvowdlxfv1k7/9nR4hYJS8+hge9+6jl -gqispdNpQ80xiEmEU5LAsTkbOYMBMMTyqfrQA71yN2BWHzZ8vTmR9W0Nv3vXkg== ------END CERTIFICATE----- - ANF Secure Server Root CA ========================= -----BEGIN CERTIFICATE----- @@ -3579,3 +3551,154 @@ wPfc5+pbrrLMtTWGS9DiP7bY+A4A7l3j941Y/8+LN+ljX273CXE2whJdV/LItM3z7gLfEdxquVeE HVlNjM7IDiPCtyaaEBRx/pOyiriA8A4QntOoUAw3gi/q4Iqd4Sw5/7W0cwDk90imc6y/st53BIe0 o82bNSQ3+pCTE4FCxpgmdTdmQRCsu/WU48IxK63nI1bMNSWSs1A= -----END CERTIFICATE----- + +FIRMAPROFESIONAL CA ROOT-A WEB +============================== +-----BEGIN CERTIFICATE----- +MIICejCCAgCgAwIBAgIQMZch7a+JQn81QYehZ1ZMbTAKBggqhkjOPQQDAzBuMQswCQYDVQQGEwJF +UzEcMBoGA1UECgwTRmlybWFwcm9mZXNpb25hbCBTQTEYMBYGA1UEYQwPVkFURVMtQTYyNjM0MDY4 +MScwJQYDVQQDDB5GSVJNQVBST0ZFU0lPTkFMIENBIFJPT1QtQSBXRUIwHhcNMjIwNDA2MDkwMTM2 +WhcNNDcwMzMxMDkwMTM2WjBuMQswCQYDVQQGEwJFUzEcMBoGA1UECgwTRmlybWFwcm9mZXNpb25h +bCBTQTEYMBYGA1UEYQwPVkFURVMtQTYyNjM0MDY4MScwJQYDVQQDDB5GSVJNQVBST0ZFU0lPTkFM +IENBIFJPT1QtQSBXRUIwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAARHU+osEaR3xyrq89Zfe9MEkVz6 +iMYiuYMQYneEMy3pA4jU4DP37XcsSmDq5G+tbbT4TIqk5B/K6k84Si6CcyvHZpsKjECcfIr28jlg +st7L7Ljkb+qbXbdTkBgyVcUgt5SjYzBhMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUk+FD +Y1w8ndYn81LsF7Kpryz3dvgwHQYDVR0OBBYEFJPhQ2NcPJ3WJ/NS7Beyqa8s93b4MA4GA1UdDwEB +/wQEAwIBBjAKBggqhkjOPQQDAwNoADBlAjAdfKR7w4l1M+E7qUW/Runpod3JIha3RxEL2Jq68cgL +cFBTApFwhVmpHqTm6iMxoAACMQD94vizrxa5HnPEluPBMBnYfubDl94cT7iJLzPrSA8Z94dGXSaQ +pYXFuXqUPoeovQA= +-----END CERTIFICATE----- + +TWCA CYBER Root CA +================== +-----BEGIN CERTIFICATE----- +MIIFjTCCA3WgAwIBAgIQQAE0jMIAAAAAAAAAATzyxjANBgkqhkiG9w0BAQwFADBQMQswCQYDVQQG +EwJUVzESMBAGA1UEChM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Q4EFgQUnYVhFHzBYm+XaORPN0DhreANVjcwDQYJKoZIhvcNAQEMBQADggIB +AGSPesRiDrWIzLjHhg6hShbNcAu3p4ULs3a2D6f/CIsLJc+o1IN1KriWiLb73y0ttGlTITVX1olN +c79pj3CjYcya2x6a4CD4bLubIp1dhDGaLIrdaqHXKGnK/nZVekZn68xDiBaiA9a5F/gZbG0jAn/x +X9AKKSM70aoK7akXJlQKTcKlTfjF/biBzysseKNnTKkHmvPfXvt89YnNdJdhEGoHK4Fa0o635yDR +IG4kqIQnoVesqlVYL9zZyvpoBJ7tRCT5dEA7IzOrg1oYJkK2bVS1FmAwbLGg+LhBoF1JSdJlBTrq +/p1hvIbZv97Tujqxf36SNI7JAG7cmL3c7IAFrQI932XtCwP39xaEBDG6k5TY8hL4iuO/Qq+n1M0R +FxbIQh0UqEL20kCGoE8jypZFVmAGzbdVAaYBlGX+bgUJurSkquLvWL69J1bY73NxW0Qz8ppy6rBe +Pm6pUlvscG21h483XjyMnM7k8M4MZ0HMzvaAq07MTFb1wWFZk7Q+ptq4NxKfKjLji7gh7MMrZQzv +It6IKTtM1/r+t+FHvpw+PoP7UV31aPcuIYXcv/Fa4nzXxeSDwWrruoBa3lwtcHb4yOWHh8qgnaHl +IhInD0Q9HWzq1MKLL295q39QpsQZp6F6t5b5wR9iWqJDB0BeJsas7a5wFsWqynKKTbDPAYsDP27X +-----END CERTIFICATE----- + +SecureSign Root CA12 +==================== +-----BEGIN CERTIFICATE----- +MIIDcjCCAlqgAwIBAgIUZvnHwa/swlG07VOX5uaCwysckBYwDQYJKoZIhvcNAQELBQAwUTELMAkG +A1UEBhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28uLCBMdGQuMR0wGwYDVQQDExRT +ZWN1cmVTaWduIFJvb3QgQ0ExMjAeFw0yMDA0MDgwNTM2NDZaFw00MDA0MDgwNTM2NDZaMFExCzAJ +BgNVBAYTAkpQMSMwIQYDVQQKExpDeWJlcnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMU +U2VjdXJlU2lnbiBSb290IENBMTIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6OcE3 +emhFKxS06+QT61d1I02PJC0W6K6OyX2kVzsqdiUzg2zqMoqUm048luT9Ub+ZyZN+v/mtp7JIKwcc +J/VMvHASd6SFVLX9kHrko+RRWAPNEHl57muTH2SOa2SroxPjcf59q5zdJ1M3s6oYwlkm7Fsf0uZl +fO+TvdhYXAvA42VvPMfKWeP+bl+sg779XSVOKik71gurFzJ4pOE+lEa+Ym6b3kaosRbnhW70CEBF +EaCeVESE99g2zvVQR9wsMJvuwPWW0v4JhscGWa5Pro4RmHvzC1KqYiaqId+OJTN5lxZJjfU+1Uef +NzFJM3IFTQy2VYzxV4+Kh9GtxRESOaCtAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0P +AQH/BAQDAgEGMB0GA1UdDgQWBBRXNPN0zwRL1SXm8UC2LEzZLemgrTANBgkqhkiG9w0BAQsFAAOC +AQEAPrvbFxbS8hQBICw4g0utvsqFepq2m2um4fylOqyttCg6r9cBg0krY6LdmmQOmFxv3Y67ilQi +LUoT865AQ9tPkbeGGuwAtEGBpE/6aouIs3YIcipJQMPTw4WJmBClnW8Zt7vPemVV2zfrPIpyMpce +mik+rY3moxtt9XUa5rBouVui7mlHJzWhhpmA8zNL4WukJsPvdFlseqJkth5Ew1DgDzk9qTPxpfPS +vWKErI4cqc1avTc7bgoitPQV55FYxTpE05Uo2cBl6XLK0A+9H7MV2anjpEcJnuDLN/v9vZfVvhga +aaI5gdka9at/yOPiZwud9AzqVN/Ssq+xIvEg37xEHA== +-----END CERTIFICATE----- + +SecureSign Root CA14 +==================== +-----BEGIN CERTIFICATE----- +MIIFcjCCA1qgAwIBAgIUZNtaDCBO6Ncpd8hQJ6JaJ90t8sswDQYJKoZIhvcNAQEMBQAwUTELMAkG +A1UEBhMCSlAxIzAhBgNVBAoTGk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k86AwDQYJKoZIhvcNAQEMBQADggIBAJaAcgkGfpzMkwQWu6A6jZJOtxEaCnFxEM0E +rX+lRVAQZk5KQaID2RFPeje5S+LGjzJmdSX7684/AykmjbgWHfYfM25I5uj4V7Ibed87hwriZLoA +ymzvftAj63iP/2SbNDefNWWipAA9EiOWWF3KY4fGoweITedpdopTzfFP7ELyk+OZpDc8h7hi2/Ds +Hzc/N19DzFGdtfCXwreFamgLRB7lUe6TzktuhsHSDCRZNhqfLJGP4xjblJUK7ZGqDpncllPjYYPG +FrojutzdfhrGe0K22VoF3Jpf1d+42kd92jjbrDnVHmtsKheMYc2xbXIBw8MgAGJoFjHVdqqGuw6q +nsb58Nn4DSEC5MUoFlkRudlpcyqSeLiSV5sI8jrlL5WwWLdrIBRtFO8KvH7YVdiI2i/6GaX7i+B/ +OfVyK4XELKzvGUWSTLNhB9xNH27SgRNcmvMSZ4PPmz+Ln52kuaiWA3rF7iDeM9ovnhp6dB7h7sxa +OgTdsxoEqBRjrLdHEoOabPXm6RUVkRqEGQ6UROcSjiVbgGcZ3GOTEAtlLor6CZpO2oYofaphNdgO +pygau1LgePhsumywbrmHXumZNTfxPWQrqaA0k89jL9WB365jJ6UeTo3cKXhZ+PmhIIynJkBugnLN +eLLIjzwec+fBH7/PzqUqm9tEZDKgu39cJRNItX+S +-----END CERTIFICATE----- + +SecureSign Root CA15 +==================== +-----BEGIN CERTIFICATE----- +MIICIzCCAamgAwIBAgIUFhXHw9hJp75pDIqI7fBw+d23PocwCgYIKoZIzj0EAwMwUTELMAkGA1UE +BhMCSlAxIzAhBgNVBAoTGkN5YmVydHJ1c3QgSmFwYW4gQ28uLCBMdGQuMR0wGwYDVQQDExRTZWN1 +cmVTaWduIFJvb3QgQ0ExNTAeFw0yMDA0MDgwODMyNTZaFw00NTA0MDgwODMyNTZaMFExCzAJBgNV +BAYTAkpQMSMwIQYDVQQKExpDeWJlcnRydXN0IEphcGFuIENvLiwgTHRkLjEdMBsGA1UEAxMUU2Vj +dXJlU2lnbiBSb290IENBMTUwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQLUHSNZDKZmbPSYAi4Io5G +dCx4wCtELW1fHcmuS1Iggz24FG1Th2CeX2yF2wYUleDHKP+dX+Sq8bOLbe1PL0vJSpSRZHX+AezB +2Ot6lHhWGENfa4HL9rzatAy2KZMIaY+jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQD +AgEGMB0GA1UdDgQWBBTrQciu/NWeUUj1vYv0hyCTQSvT9DAKBggqhkjOPQQDAwNoADBlAjEA2S6J +fl5OpBEHvVnCB96rMjhTKkZEBhd6zlHp4P9mLQlO4E/0BdGF9jVg3PVys0Z9AjBEmEYagoUeYWmJ +SwdLZrWeqrqgHkHZAXQ6bkU6iYAZezKYVWOr62Nuk22rGwlgMU4= +-----END CERTIFICATE----- + +Sectigo +========================================= +-----BEGIN CERTIFICATE----- +MIIGEzCCA/ugAwIBAgIQfVtRJrR2uhHbdBYLvFMNpzANBgkqhkiG9w0BAQwFADCB +iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl +cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV +BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTgx +MTAyMDAwMDAwWhcNMzAxMjMxMjM1OTU5WjCBjzELMAkGA1UEBhMCR0IxGzAZBgNV +BAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEYMBYGA1UE +ChMPU2VjdGlnbyBMaW1pdGVkMTcwNQYDVQQDEy5TZWN0aWdvIFJTQSBEb21haW4g +VmFsaWRhdGlvbiBTZWN1cmUgU2VydmVyIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC +AQ8AMIIBCgKCAQEA1nMz1tc8INAA0hdFuNY+B6I/x0HuMjDJ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MUx +RP0T7dWbqWlod3zu4f+k+TY4CFM5ooQ0nBnzvg6s1SQ36yOoeNDT5++SR2RiOSLv +xvcRviKFxmZEJCaOEDKNyJOuB56DPi/Z+fVGjmO+wea03KbNIaiGCpXZLoUmGv38 +sbZXQm2V0TP2ORQGgkE49Y9Y3IBbpNV9lXj9p5v//cWoaasm56ekBYdbqbe4oyAL +l6lFhd2zi+WJN44pDfwGF/Y4QA5C5BIG+3vzxhFoYt/jmPQT2BVPi7Fp2RBgvGQq +6jG35LWjOhSbJuMLe/0CjraZwTiXWTb2qHSihrZe68Zk6s+go/lunrotEbaGmAhY +LcmsJWTyXnW0OMGuf1pGg+pRyrbxmRE1a6Vqe8YAsOf4vmSyrcjC8azjUeqkk+B5 +yOGBQMkKW+ESPMFgKuOXwIlCypTPRpgSabuY0MLTDXJLR27lk8QyKGOHQ+SwMj4K +00u/I5sUKUErmgQfky3xxzlIPK1aEn8= +-----END CERTIFICATE----- diff --git a/Source/Core/Upload/ScriptUploadEngine.cpp b/Source/Core/Upload/ScriptUploadEngine.cpp index 5cddab62..5d9eee03 100644 --- a/Source/Core/Upload/ScriptUploadEngine.cpp +++ b/Source/Core/Upload/ScriptUploadEngine.cpp @@ -56,29 +56,6 @@ std::pair GetOperationResult(Sqrat::SharedPtr return {res, t}; } -/* std::unique_ptr SqTableToParameter(const std::string name, const std::string& type, Sqrat::Table& table) -{ - if (type == ChoiceParameter::TYPE) { - auto choiceParameter = std::make_unique(name); - auto choices = table.GetValue("items"); - if (!!choices) { - Sqrat::Array::iterator it; - while (choices->Next(it)) { - Sqrat::Table tbl(it.getValue(), choices->GetVM()); - std::string itemLabel = ScriptAPI::GetValue(tbl.GetValue("label")); - std::string itemId = ScriptAPI::GetValue(tbl.GetValue("id")); - choiceParameter->addItem(itemId, itemLabel); - } - } - return choiceParameter; - } - if (type == BooleanParameter::TYPE) { - return std::make_unique(name); - } else { - return std::make_unique(name); - } -}*/ - void SqTableToParameterList(Sqrat::SharedPtr tbl, ParameterList& list) { list.clear(); Sqrat::Object::iterator it;