The result is the derivative of the modified Bessel function of the second kind, whose integral representation is
http://mathworld.wolfram.com/ModifiedBesselFunctionoftheSecondKind.html
And the solution for the massive case is given in Weinberg's QFT I page 387, which can be derived from the...