# Stage 1.0 - Generate the nonce (base64 encoding of 32 bytes of random data) and record the timestamp
update request {
Tmp-Octets-0 := "0x%{randstr:hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh}"
- Tmp-String-0 := "%{base64:&Tmp-Octets-0}"
+ Tmp-String-0 := "%{base64:Tmp-Octets-0}"
Tmp-Integer-0 := "%l"
}
# Stage 1.4 - Create the oAuth signature
update request {
- Tmp-Octets-1 := "0x%{hmacsha1:&Tmp-String-2 &Tmp-String-3}"
- Tmp-String-4 := "%{base64:&Tmp-Octets-1}"
+ Tmp-Octets-1 := "0x%{hmacsha1:Tmp-String-2 Tmp-String-3}"
+ Tmp-String-4 := "%{base64:Tmp-Octets-1}"
}
# Stage 2.0 - Adding the authorization header
----
Tmp-Integer-0 := { 1, 3, 5, 11 }
-foreach self (&Tmp-Integer-0) {
+foreach self (Tmp-Integer-0) {
self += 19
}
----
.Example of Looping over children of a structural type.
[source,unlang]
----
-foreach thing (&Tmp-TLV-0[*]) {
+foreach thing (Tmp-TLV-0[*]) {
out += &thing.c
out += " "
}