NetTalk Central

Author Topic: Compile time error: Unknown identifier: ST:NOPADDING  (Read 4460 times)

Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Compile time error: Unknown identifier: ST:NOPADDING
« on: November 13, 2019, 09:08:07 AM »
Hi

I'm getting an error at migrate a SOAP client from  C10 N10.36 ST2.90 XF3.10   to C11 NT10.40 ST2.90 XF3.13.




NetAcme.Base64Urlencode   PROCEDURE (StringTheory pInput)
  code
  pInput.Base64Encode(st:URLSafe + st:NoPadding)

-----------------
NetAcme.Finalize                       Procedure()   ! version 2 only
strx  stringtheory
  code
  self.state = state:Finalize
  self.JsonHeaders()
  self.SetJwsProtected(true,self.finalizeurl)

  !payload
  strx.loadfile(clip(self.certdir) & '\' & clip(self.CertificateName) & '.csr.der')
  strx.Base64Encode(st:URLSafe + st:NoPadding)

TIA
Regards
Manuel

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Compile time error: Unknown identifier: ST:NOPADDING
« Reply #1 on: November 14, 2019, 09:06:51 AM »
At a guess, you need a newer version of String Theory.

Line 79 of StringTheory.inc  3.11 (which is the version I have at the moment) has

st:NoPadding        equate(2)

So it looks as if Bruce has made some change to Base64Encode since the version that you're using.

Jane

Manuel

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Compile time error: Unknown identifier: ST:NOPADDING
« Reply #2 on: November 14, 2019, 11:36:29 AM »
It seems that NT 10.40 requires ST 3.

Thank you.

Manuel

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Compile time error: Unknown identifier: ST:NOPADDING
« Reply #3 on: November 14, 2019, 07:52:54 PM »
>> It seems that NT 10.40 requires ST 3.

yes. The new acme class uses features in ST 3 - I didn't realize that at the time, but it is the case.

cheers
Bruce