pike.git / src / post_modules / Nettle / hogweed.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:516:    *! Returns the JOSE name for supported curves,    *! and @[UNDEFINED] otherwise.    *!    *! @seealso    *! @[name()]    */    PIKEFUN string(7bit) jose_name()    {   #ifdef HAVE_CURVE_NETTLE_SECP_256R1    if (THIS->curve == &nettle_secp_256r1) { -  ref_push_string(MK_STRING("P-256R")); +  ref_push_string(MK_STRING("P-256"));    return;    }   #endif /* HAVE_CURVE_NETTLE_SECP_256R1 */   #ifdef HAVE_CURVE_NETTLE_SECP_384R1    if (THIS->curve == &nettle_secp_384r1) {    ref_push_string(MK_STRING("P-384"));    return;    }   #endif /* HAVE_CURVE_NETTLE_SECP_384R1 */   #ifdef HAVE_CURVE_NETTLE_SECP_521R1